Title: Excluding Google Maps js, maps.google.com
Last modified: August 31, 2016

---

# Excluding Google Maps js, maps.google.com

 *  Resolved [noahj-champion](https://wordpress.org/support/users/noahj-champion/)
 * (@noahj-champion)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/excluding-google-maps-js-mapsgooglecom/)
 * I have the following string, can I exclude just this script from Autoptimize?
 * `<script type='text/javascript' src='http://maps.google.com/maps/api/js?v=3&ver
   =2.7.4#038;sensor=false'></script>`
 * I don’t get any errors, but the map just doesn’t display.
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Thread Starter [noahj-champion](https://wordpress.org/support/users/noahj-champion/)
 * (@noahj-champion)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/excluding-google-maps-js-mapsgooglecom/#post-7418648)
 * [SOLVED]
 * No worries now.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/excluding-google-maps-js-mapsgooglecom/#post-7418657)
 * great! 🙂
 *  [awilson3rd](https://wordpress.org/support/users/awilson3rd/)
 * (@awilson3rd)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/excluding-google-maps-js-mapsgooglecom/#post-8782702)
 * Hello,
 * I know this post is old but I am also having a problem with gmaps being displayed
   when autoptimize is active. It’s not an api problem because when I deactivate
   the plugin the gmap appears fine.
 * Can you let me know if possible what the fix for this was? Is there a way to 
   tell autoptimize to ignore the gmap js?
 * Thanks – andrew
 *  [awilson3rd](https://wordpress.org/support/users/awilson3rd/)
 * (@awilson3rd)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/excluding-google-maps-js-mapsgooglecom/#post-8782710)
 * Just to add – this is what I currently have in the exclude field:
 * seal.js, js/jquery/jquery.js
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/excluding-google-maps-js-mapsgooglecom/#post-8782744)
 * well, I don’t know really, as it all depends on your context. so let’s ask some
   questions;
    * do you use a plugin to display google maps? which? * do you see
   a JS error on your browser console when the page load with JS autoptimized? *
   did you try with/ without “force into head” and/ or “also aggregate inline js”
   and/ or “try/catch” active?
 * frank
 *  [awilson3rd](https://wordpress.org/support/users/awilson3rd/)
 * (@awilson3rd)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/excluding-google-maps-js-mapsgooglecom/#post-8782762)
 * Hello Frank,
 * Thanks for the reply.
 * No, google maps is built in to the theme I use. I don’t see any error where the
   google map should be, all there is is a grey blank screen. re the other options,
   I will give it a try
 * Thanks – Andrew
 *  [awilson3rd](https://wordpress.org/support/users/awilson3rd/)
 * (@awilson3rd)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/excluding-google-maps-js-mapsgooglecom/#post-8782791)
 * Hello Frank,
 * Ok, I have checked ‘Check this option for Autoptimize to also aggregate JS in
   the HTML. If this option is not enabled, you might have to “force JavaScript 
   in head” and this seems to have fixed the problem.
 * I don’t really understand how this option works – will this effect loading times?
 * Thanks again – Andrew
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/excluding-google-maps-js-mapsgooglecom/#post-8782901)
 * it won’t affect loading times, but keep an eye on AO cache size because that 
   _could_ become a problem.

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

The topic ‘Excluding Google Maps js, maps.google.com’ 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/)

## Tags

 * [exclude](https://wordpress.org/support/topic-tag/exclude/)

 * 8 replies
 * 3 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/excluding-google-maps-js-mapsgooglecom/#post-8782901)
 * Status: resolved