Viewing 1 replies (of 1 total)
  • Plugin Author optimalisatie

    (@optimalisatie)

    Hi pandx,

    The Google Maps API scripts often do no support async loading. It would be most easy to exclude the Google Maps API scripts in the javascript load optimization tab and optionally the javascript proxy tab (it may be that scripts need to be loaded from the Google servers if they contain client based data).

    If you want to achieve the best performance for a page with a Google map, it would also be possible to apply advanced configuration. The available methods depend on the API version. The latest version is async by default and uses a callback method to initiate a map.

    <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async defer></script>

    More information about loading the Google Maps API async can be found in the following documentation on loading the maps API synchronously (the old method):

    https://developers.google.com/maps/documentation/javascript/examples/map-sync

    More information about async loading of Google scripts can also be found in the documentation for loading Google AdSense asynchronously:

    https://support.google.com/adsense/answer/3221666?hl=en

    I hope that this information is helpful!

    [ Signature moderated ]

    • This reply was modified 7 years, 10 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • The topic ‘Google map missing’ is closed to new replies.