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

    (@optimalisatie)

    Hi Parmenti,

    Google maps are more complex to optimize. There are solutions to enable async loading of Google maps but sometimes it requires customization of the (theme) javascript. Excluding of Google maps API related scripts is more difficult because Google maps API injects many independent scripts after the main script is loaded, which would be captured by the proxy.

    If you want to load Google maps async you may find more information about the correct way to load the API in the following example:

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

    When you initialize the map correctly when the API is loaded async then the map should load without an issue.

    Excluding Google Maps API related scripts is possible as well. You will then need to manually discover the API related scripts for your specific website and add unique parts of the script URL’s to the exclude list.

    For example, when many of the scripts contain the part /maps-api-v3/ you could simply add that string to the exclude list to match scripts that contain maps-api-v3, e.g. https://maps.googleapis.com/maps-api-v3/api/js/29/14/controls.js

Viewing 1 replies (of 1 total)
  • The topic ‘Google Maps : won’t ignore’ is closed to new replies.