Title: Google API script enqueue
Last modified: August 20, 2016

---

# Google API script enqueue

 *  Resolved [Daniel Gilfoy](https://wordpress.org/support/users/dgilfoy/)
 * (@dgilfoy)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/google-api-script-enqueue/)
 * Love the simplicity of this plugin!
 * Though, is there any way you’d add an option to remove auto-loading of the google
   maps api script and enqueue it only in the shortcode? Or, better yet, just add
   an action hook in the shortcode function which would allow me to deregister it
   globally and enqueue it through the hook.
 * Thanks!
 * [http://wordpress.org/extend/plugins/simple-google-maps-short-code/](http://wordpress.org/extend/plugins/simple-google-maps-short-code/)

Viewing 1 replies (of 1 total)

 *  Moderator [Pippin Williamson](https://wordpress.org/support/users/mordauk/)
 * (@mordauk)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/google-api-script-enqueue/#post-3462960)
 * Whoops! Sorry for missing this.
 * Are you just wanting to limit the script to pages that have a map on them?

Viewing 1 replies (of 1 total)

The topic ‘Google API script enqueue’ is closed to new replies.

 * ![](https://ps.w.org/simple-google-maps-short-code/assets/icon-256x256.png?rev
   =1868328)
 * [Simple Shortcode for Google Maps](https://wordpress.org/plugins/simple-google-maps-short-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-google-maps-short-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-google-maps-short-code/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-google-maps-short-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-google-maps-short-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-google-maps-short-code/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pippin Williamson](https://wordpress.org/support/users/mordauk/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/google-api-script-enqueue/#post-3462960)
 * Status: resolved