Google Maps API - Slow loading javascript

前端 未结 3 1940
无人及你
无人及你 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:58

    Use Google's Ajax APIs. From some time past, all of Google's services can be accessed through the JavaScript API. It's a modular system, you only have to include the JSAPI library, and then you can dynamically load the modules you need—it won't block your site.

    
    
    

    For further details, see JSAPI's developer documentation.

提交回复
热议问题