Title: not wor with google.maps.api?
Last modified: August 22, 2016

---

# not wor with google.maps.api?

 *  Resolved [wpt98](https://wordpress.org/support/users/wpt98/)
 * (@wpt98)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/not-wor-with-googlemapsapi/)
 * i use the autoptimize plugin on the site where i use the sabai.directory plugin.
   
   when i activate the autoptimize plugin, i see this error message:
 *  Failed to execute ‘write’ on ‘Document’: It isn’t possible to write into a document
   from an asynchronously-loaded external script unless it is explicitly opened.
 * i tried exclude some js, but only works when i have set to Force JavaScript in
   <head>
 * any suggestio? than you
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/not-wor-with-googlemapsapi/#post-5645629)
 * although in theory excluding just the right script(s) should work, sometimes “
   force in head” is the only way to make some javascript function wpt98 (esp. when
   confronted with a plugin such as sabai which introduces a huge amount of js-files).
   that’s why “force into head” is in there in the first place 🙂
 * kind regards,
    frank
 *  [croatian6](https://wordpress.org/support/users/croatian6/)
 * (@croatian6)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/not-wor-with-googlemapsapi/#post-5645819)
 * Hi
    This plugin made huge difference in my page insight result, but unfortunatelly
   I couldn’t use google map widget on my website once I installed plugin . Is there
   any way to fix this because plugin really works?
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/not-wor-with-googlemapsapi/#post-5645821)
 * hi croatian6;
    what plugin do you use to create the google maps widget? or what
   is the javascript-code generated by the plugin in the widget when AO isn’t active?
 * kind regards,
    frank
 *  [croatian6](https://wordpress.org/support/users/croatian6/)
 * (@croatian6)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/not-wor-with-googlemapsapi/#post-5645846)
 * I ised shortcode for google maps, I am using Soho theme. Right now plugin is 
   disabled, it is at [http://www.apartmentslela.com/lela2/](http://www.apartmentslela.com/lela2/)
   page.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/not-wor-with-googlemapsapi/#post-5645847)
 * OK, try to add jquery.js to the comma-seperated JS exclusion list or, alternatively,
   to check the “force JS in head” option. If you’ve done that and it still doesn’t
   work, I’d need to see the page with JS optimization active.
 * Hope this helps,
    frank
 *  [croatian6](https://wordpress.org/support/users/croatian6/)
 * (@croatian6)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/not-wor-with-googlemapsapi/#post-5645879)
 * Hi Frank, thank you for your answer, but this is too tehnical for me 🙁 I am 
   going to search around to see what this mean
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/not-wor-with-googlemapsapi/#post-5645880)
 * well, those options are in the Autoptimize settings page (under “advanced settings”).
   there’s more info about that [in the faq](https://wordpress.org/plugins/autoptimize/faq/).
 * frank

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

The topic ‘not wor with google.maps.api?’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/not-wor-with-googlemapsapi/#post-5645880)
 * Status: resolved