Title: Deque google api script from frontend
Last modified: November 6, 2019

---

# Deque google api script from frontend

 *  Resolved [marianssen](https://wordpress.org/support/users/marianssen/)
 * (@marianssen)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/deque-google-api-script-from-frontend/)
 * Hi,
 * according the the recent EU court ruling, a user has to actively agree with the
   use of cookies on a website. I’m using a 3rd party cookie plugin, where the user
   can decide to accept or decline cookies.
 * I’m using the pro version of your plugin, and even though there is a GDPR section,
   it is not very user-friendly with other cookie plugins – the user would have 
   to click twice (3rd party cookies and then click again on your GDPR notice to
   show google maps).
 * Is it possible to somehow deque the google maps API from frontend (so no cookies
   would load at first), and then load it, when the user clicks accept throught 
   a 3rd party cookie plugin?
 * Regards,
    Marian

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

 *  [perryrylance](https://wordpress.org/support/users/perryrylance/)
 * (@perryrylance)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/deque-google-api-script-from-frontend/#post-12117741)
 * Hi Marian
 * Thank you for getting in touch and thank you for your feedback.
 * We’ll be integrating with Borlabs Cookie plugin in the near future.
 * If you had a specific 3rd party cookie plugin in mind, we can potentially look
   at fast tracking that.
 * Does that help?
 * Kind regards
    – Perry
 *  Thread Starter [marianssen](https://wordpress.org/support/users/marianssen/)
 * (@marianssen)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/deque-google-api-script-from-frontend/#post-12122165)
 * Hi Perry,
 * I’m using the GDPR Cookie Compliance. The plugin has an option to load additional
   script after clicking on Agree in the cookie notice. So, my thinking was, I could
   deque the google maps frontend script until the users clicks accepts. Only then
   it would be loaded within the plugin GDPR Cookie Compliance.
 * I think ton of users would even appreciate this kind of option inside of the 
   plugin (not only integration with a specific cookie plugins), since this is a
   EU requirement and your current solutions is incorrect from the UX perspective.
 * Regards,
    Marian
 *  [perryrylance](https://wordpress.org/support/users/perryrylance/)
 * (@perryrylance)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/deque-google-api-script-from-frontend/#post-12122468)
 * Hi [@marianssen](https://wordpress.org/support/users/marianssen/)
 * The only mechanism for this at the moment is the built in one, you’d have to 
   engineer your own system using hooks if you need something immediate.
 * Thanks again for your feedback, we’ll definitely be improving this module in 
   the near future. The current module meets legal requirements, but we agree that
   the UX could be improved.
 * Is there anything else we can help you with?
 * Kind regards
    – Perry
 *  Thread Starter [marianssen](https://wordpress.org/support/users/marianssen/)
 * (@marianssen)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/deque-google-api-script-from-frontend/#post-12125933)
 * Hi [@perryrylance](https://wordpress.org/support/users/perryrylance/),
 * could you point me to some of the hooks I could use?
 * Regards,
    Marian
 *  [perryrylance](https://wordpress.org/support/users/perryrylance/)
 * (@perryrylance)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/deque-google-api-script-from-frontend/#post-12125967)
 * Hi Marian
 * I’d recommend you use `script_loader_tag`, our plugin enqueues the API with the
   handle `wpgmza_api_call`.
 * Does that help?
 * Kind regards
    – Perry

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

The topic ‘Deque google api script from frontend’ 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/)

## Tags

 * [cookie](https://wordpress.org/support/topic-tag/cookie/)
 * [cookies](https://wordpress.org/support/topic-tag/cookies/)
 * [dequeue](https://wordpress.org/support/topic-tag/dequeue/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 5 replies
 * 2 participants
 * Last reply from: [perryrylance](https://wordpress.org/support/users/perryrylance/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/deque-google-api-script-from-frontend/#post-12125967)
 * Status: resolved