Google Maps API - Slow loading javascript

前端 未结 3 1942
无人及你
无人及你 2021-02-05 23:11

I am using Google Maps API to display a map on a certain page.

Problem is that the file http://maps.google.com/maps?file=api..... sometimes happens to load

3条回答
  •  一向
    一向 (楼主)
    2021-02-05 23:56

    On JavaScript optimization: always put your JS at the bottom of your even your Maps API script. I can't really think of any good reason to have any JS in the head.

提交回复
热议问题