Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Do you use a plugin to display Google Maps or is this part of your theme? Have you tried excluding it from being deferred?

    Thread Starter mrdavidsparks

    (@mrdavidsparks)

    Maps are part of the theme, and import via Google Maps API

    I have not tried excluding it from being deferred. I have read that using async can break your site:

    https://kinsta.com/blog/eliminate-render-blocking-javascript-css/

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    async and defer both can break things, hence the admin screens to exclude stuff ??

    if you can provide your URL I’ll be happy to take a quick look.

    Thread Starter mrdavidsparks

    (@mrdavidsparks)

    I deactivated async javascript. But it’s oceilearn.org.

    Thanks,

    David

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, but to help I would need;
    * the exact URL where google maps is
    * any JS error on the browser console when async js is running OR (better) the URL of a non-PROD site where you can leave it in a broken state so I can *see* what is going wrong

    So I found the contact page and I see the problem; you’re using a plugin (fusionmaps) which interacts with the google maps JS API, so asyncing (or deferring) google maps will produce errors. you _could_ try to also exclude `
    /Avada/includes/lib/assets/min/js/library/jquery.fusion_maps.jsand/Avada/includes/lib/assets/min/js/general/fusion-google-map.js` from Autoptimize and then defer them just like you did google maps itself. not 100% sure this’ll work though; dependencies can be hard ??

    frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    oh, additionally; do for “defer” not “async”, as the latter does not guarantee the correct execution order.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem with Google Maps Loading’ is closed to new replies.