Title: Problem with Google Maps Loading
Last modified: April 13, 2018

---

# Problem with Google Maps Loading

 *  Resolved [mrdavidsparks](https://wordpress.org/support/users/mrdavidsparks/)
 * (@mrdavidsparks)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-google-maps-loading/)
 * When I turn on Async JavaScript and choose the defer option, my google maps disappear.
   Any idea why?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-google-maps-loading/#post-10180359)
 * 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](https://wordpress.org/support/users/mrdavidsparks/)
 * (@mrdavidsparks)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-google-maps-loading/#post-10181211)
 * 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/](https://kinsta.com/blog/eliminate-render-blocking-javascript-css/)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-google-maps-loading/#post-10181752)
 * 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](https://wordpress.org/support/users/mrdavidsparks/)
 * (@mrdavidsparks)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-google-maps-loading/#post-10182325)
 * I deactivated async javascript. But it’s oceilearn.org.
 * Thanks,
 * David
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-google-maps-loading/#post-10182563)
 * 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.js`and`/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
    -  This reply was modified 8 years, 1 month ago by [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/).
      Reason: found it
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-google-maps-loading/#post-10182612)
 * 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.

 * ![](https://ps.w.org/async-javascript/assets/icon-128x128.png?rev=1839260)
 * [Async JavaScript](https://wordpress.org/plugins/async-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/async-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/async-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/async-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/async-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/async-javascript/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-google-maps-loading/#post-10182612)
 * Status: resolved