Title: Plugin unloads other Google Maps scripts
Last modified: May 31, 2018

---

# Plugin unloads other Google Maps scripts

 *  Resolved [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/)
 * Hi,
 * I don’t know if this is done on purpose, but the plugin seems to unload Google
   Maps libraries loaded by other plugins on pages where the WP Google Maps plugin
   isn’t used. Why is this?

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

 *  [Endymion00](https://wordpress.org/support/users/endymion00/)
 * (@endymion00)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10347191)
 * I’m seeing the same with all 7.10.x versions. It breaks other google maps on 
   pages where it isn’t even there. It really shouldn’t load or mess with anything
   but on pages where it’s maps are.
 * Reverting to 7.0.06 fixes the issue.
 * Developer. We have more than enough stuff loading on pages, that plugins should
   do their best to only load content on pages where their presence exists or at
   least load your code in a such a way that all scripting is isolated from others
   as to not interfere.
    -  This reply was modified 8 years ago by [Endymion00](https://wordpress.org/support/users/endymion00/).
 *  [meetingguide](https://wordpress.org/support/users/meetingguide/)
 * (@meetingguide)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10347756)
 * I’m a plugin developer for a plugin that uses Google Maps and it no longer works
   when this plugin is installed. I am enqueueing the script with wp_enqueue_script().
   Is there a solution? I don’t see what I can do on my end.
 *  [stefaanvandamme](https://wordpress.org/support/users/stefaanvandamme/)
 * (@stefaanvandamme)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10348225)
 * same problem here, i use the wp-gpx plugin but maps are not showing up anymore
   unless I disable the wp google maps plugin
 *  [perryrylance](https://wordpress.org/support/users/perryrylance/)
 * (@perryrylance)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10348434)
 * Hi everyone
 * Thank you for getting in touch and thank you very much for bringing this to our
   attention.
 * We’ve had a lot of trouble with “You have loaded the Google Maps API Multiple
   times” breaking peoples maps in the past, and have had code to attempt to block
   other sources from enqueueing the API.
 * This code has been improved and I can see that whilst it’s working as intended,
   this is creating problems for you.
 * For a short term solution you can use the controls in Maps -> Settings -> General
   Settings regarding the Google API. You can control where the API is enqueued (
   Never, Always, Front End only, Back End only, Where Required), you can also include
   and exclude certain pages.
 * What I’d like to propose is also adding a checkbox for “Do not prevent other 
   plugins or theme from loading Google API”, would that solve the problem for you
   all?
 * If that sounds good we’ll have that patched in today.
 * Kind regards
    – Perry
 *  Thread Starter [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10348572)
 * > What I’d like to propose is also adding a checkbox for “Do not prevent other
   > plugins or theme from loading Google API”, would that solve the problem for
   > you all?
 * That depends if it’s enabled by default. I have the same problem with my plugin,
   and also have a ‘compatibility mode’ that unloads other Google Maps scripts in
   case it’s really necessary, but this is disabled by default.
 * I don’t think it’s okay to just by default unload JS scripts required by other
   plugins, especially if they are required for the other plugin to properly function.
 *  [meetingguide](https://wordpress.org/support/users/meetingguide/)
 * (@meetingguide)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10349359)
 * I agree with Tijmen on that. It works for me only if it’s enabled by default.
 *  [perryrylance](https://wordpress.org/support/users/perryrylance/)
 * (@perryrylance)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10356654)
 * Thank you for this, we really appreciate your feedback!
 * We’ve added “Prevent other plugins or theme from loading Maps API”, this checkbox
   is unchecked by default.
 * If I’ve understood correctly, this is the behaviour you’re describing?
 *  [meetingguide](https://wordpress.org/support/users/meetingguide/)
 * (@meetingguide)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10357139)
 * Thank you, I can confirm it’s working again.
 *  [perryrylance](https://wordpress.org/support/users/perryrylance/)
 * (@perryrylance)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10364416)
 * Thank you for letting us know.
 * I’m confident this is solved, however if anyone else has further issues please
   let us know?
 *  [Endymion00](https://wordpress.org/support/users/endymion00/)
 * (@endymion00)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10380464)
 * I’m not finding the “Prevent other plugins or theme from loading Maps API” checkbox.
   Where is that supposed to be in the settings?
 * Also, the changelog isn’t being updated for the last few versions.
 *  [perryrylance](https://wordpress.org/support/users/perryrylance/)
 * (@perryrylance)
 * [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10385932)
 * I’m really sorry to hear you’re still experiencing this issue,
 * Can you please confirm which version of the plugin and any add-ons you are running?
 * Can you please open a ticket at [https://www.wpgmaps.com/contact-us](https://www.wpgmaps.com/contact-us)
   and attach login details to your site if permissible, so we can look into this
   further?

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

The topic ‘Plugin unloads other Google Maps scripts’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-maps/assets/icon-256x256.png?rev=3058363)
 * [WP Go Maps - Google Maps, OpenStreetMap, Leaflet Map](https://wordpress.org/plugins/wp-google-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-maps/reviews/)

 * 11 replies
 * 5 participants
 * Last reply from: [perryrylance](https://wordpress.org/support/users/perryrylance/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/plugin-unloads-other-google-maps-scripts/#post-10385932)
 * Status: resolved