Title: Only load Google Maps script when necessary?
Last modified: November 21, 2024

---

# Only load Google Maps script when necessary?

 *  Resolved [mcmdesigns](https://wordpress.org/support/users/mcmdesigns/)
 * (@mcmdesigns)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/only-load-google-maps-script-when-necessary/)
 * I have some additional Google Maps functionality throughout my site and the plugin
   is causing the Maps API script to get loaded twice which is causing issues. On
   the pages where I have my other maps I do not have any forms, so I’m not sure
   why the plugin would be loading the script on those pages. Is there an easy way
   to make it so that the plugin will only load the Maps API script on pages where
   it’s necessary (pages with forms which have an address field with the “Enable
   Autocomplete with Google Places API” option enabled)?
    -  This topic was modified 1 year, 6 months ago by [mcmdesigns](https://wordpress.org/support/users/mcmdesigns/).

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

 *  Plugin Author [Kaisar Ahmmed](https://wordpress.org/support/users/kaisarahmmed/)
 * (@kaisarahmmed)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/only-load-google-maps-script-when-necessary/#post-18156111)
 * Hi [@mcmdesigns](https://wordpress.org/support/users/mcmdesigns/),
 * Thanks for your support threads. We resolve the issue and roll out an update.
 * Thanks a lot.
 *  Thread Starter [mcmdesigns](https://wordpress.org/support/users/mcmdesigns/)
 * (@mcmdesigns)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/only-load-google-maps-script-when-necessary/#post-18156287)
 * Awesome, thank you so much for the fast response!
 *  [justauser034675](https://wordpress.org/support/users/woocomuser/)
 * (@woocomuser)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/only-load-google-maps-script-when-necessary/#post-18202695)
 * Just wondering, further to this…
 * Not sure if this is possible but on paginated forms, is it possible to only load
   it on the page of the form where its used. Might be a bit of a non-starter I 
   know – but thought I’d ask… 🙂
 * thanks

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

The topic ‘Only load Google Maps script when necessary?’ is closed to new replies.

 * ![](https://ps.w.org/gf-google-address-autocomplete/assets/icon-128x128.png?rev
   =2450999)
 * [Address Autocomplete via Google for Gravity Forms](https://wordpress.org/plugins/gf-google-address-autocomplete/)
 * [Support Threads](https://wordpress.org/support/plugin/gf-google-address-autocomplete/)
 * [Active Topics](https://wordpress.org/support/plugin/gf-google-address-autocomplete/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gf-google-address-autocomplete/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gf-google-address-autocomplete/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [justauser034675](https://wordpress.org/support/users/woocomuser/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/only-load-google-maps-script-when-necessary/#post-18202695)
 * Status: resolved