Title: google is not defined &#8211; maps script enqueued after plugin script
Last modified: August 24, 2016

---

# google is not defined – maps script enqueued after plugin script

 *  [jmp909](https://wordpress.org/support/users/jmp909wp/)
 * (@jmp909wp)
 * [11 years ago](https://wordpress.org/support/topic/google-is-not-defined-maps-script-enqueued-after-plugin-script/)
 * Hi,
 * I’m not sure why but your maps.google.com script embed is being embedded in my
   footer and therefore ‘google’ object does not exist yet when your code runs.
 * i fixed it temporarily by putting a jQuery ready function around your pw_run_map_function,
   but i’d prefer to not be editing the plugin itself
 * thanks for any advice
    j
 * [https://wordpress.org/plugins/simple-google-maps-short-code/](https://wordpress.org/plugins/simple-google-maps-short-code/)

Viewing 1 replies (of 1 total)

 *  Moderator [Pippin Williamson](https://wordpress.org/support/users/mordauk/)
 * (@mordauk)
 * [11 years ago](https://wordpress.org/support/topic/google-is-not-defined-maps-script-enqueued-after-plugin-script/#post-6159423)
 * Does the problem happen when using the default Twenty Fifteen theme?

Viewing 1 replies (of 1 total)

The topic ‘google is not defined – maps script enqueued after plugin script’ 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: [11 years ago](https://wordpress.org/support/topic/google-is-not-defined-maps-script-enqueued-after-plugin-script/#post-6159423)
 * Status: not resolved