loading javascript dependencies on demand

后端 未结 6 1605
灰色年华
灰色年华 2020-12-14 23:15

I\'m sure there are different approaches to this problem, and I can think of some. But I\'d like to hear other people\'s opinion on this. To be more specific I\'ve built a w

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 23:59

    You might want to take a look at a real DEMO on real estate site.

    On the demo page, just click on the link [Xem bản đồ] to see the map loaded on demand. The map loaded only when the link be clicked not at the time of page load, so it can reduce page download time.

提交回复
热议问题