Title: Google Maps Javascript Error
Last modified: February 22, 2021

---

# Google Maps Javascript Error

 *  Resolved [bytefight](https://wordpress.org/support/users/bytefight/)
 * (@bytefight)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/google-maps-javascript-error-3/)
 * Hey,
 * I’ve installed your plugin on the stated website and there appears an error with
   the google map. Placeholder is getting displayed but after the consent is given
   the map is not loading (getting displayed). Also it’s not loading after I refresh
   the page. The console shows an error regarding the maps integration.
 * Please help!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-maps-javascript-error-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/google-maps-javascript-error-3/#post-14087342)
 * Hi [@bytefight](https://wordpress.org/support/users/bytefight/),
 * A quick explanation of why this happens;
 * When Google Maps gets blocked on your website, there’s a dependency issue in 
   one of your theme’s files.
 * This file (themes/bf_catuma/script.min.js) expects Google Maps to be loaded before
   it is triggered. Because Google Maps is blocked and is triggered after consent,
   it creates an error, because it is loaded out of order.
 * Normally we can block a dependent script as well, and control how the files are
   loaded after consent is given. But in this case your theme’s file contains other
   functionalities as well, meaning blocking this file will break other functionalities.
 * The only way this would work is to isolate adding Google Maps functionalities,
   so you can control loading the scripts. I see you’re using a custom theme, are
   you comfortable with creating a custom integration for yourself? [https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/custom-google-maps.php](https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/custom-google-maps.php)
 * regards Aert
 *  Thread Starter [bytefight](https://wordpress.org/support/users/bytefight/)
 * (@bytefight)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/google-maps-javascript-error-3/#post-14088785)
 * Hi [@aahulsebos](https://wordpress.org/support/users/aahulsebos/),
 * I’ve changed the integration to the Maps Embed API and it works great! Thanks
   for your advice!

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

The topic ‘Google Maps Javascript Error’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bytefight](https://wordpress.org/support/users/bytefight/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/google-maps-javascript-error-3/#post-14088785)
 * Status: resolved