-
AuthorPosts
-
October 22, 2015 at 4:30 am #635367
Hi,
using WP Rocket I’m doing inline JS minification on http://escaperoombus.com/. This works like a charm, except for the Google Map on the bottom of the page. In the console an error is logged for https://maps.googleapis.com/maps-api-v3/api/js/22/10a/intl/nl_ALL/main.js (a is undefined), which resolves as soon as I disable inline JS minification.
Any thoughts on what causes this error and how to resolve it?
Thanks in advance!October 22, 2015 at 5:07 am #635402Hi,
You can exclude that script in wp rocket as it is already minified.
Add this link in JS files to exclude from minification
https://maps.googleapis.com/maps-api-v3/api/js/22/10a/intl/nl_ALL/main.js
Thanks
October 27, 2015 at 11:36 am #641754Just tried that, but the error is stil present 🙁
October 27, 2015 at 12:15 pm #641819Hi There,
Upon checking your website, I couldn’t see the JS errors:
Could you please clear your cache and try again?
Regards!
October 27, 2015 at 4:54 pm #642298But there is a JS error in your console 😉
I’ve cleared my cache several times and are kinda sure about the following conclusion: everything works fine when the WP Rocket Cache is build, but the error shows up when NOT using the WP Rocket cache.
Although it’s not a real issue for me (anymore), I am wondering how the error can come up. I would definitely love to help improving the amazing X theme, so please let me know if you want me to perform certain actions and reproduce the issue (probably by disabling WP Rocket) for further debugging.October 27, 2015 at 8:51 pm #642493Hey there,
WP Rocket might change the order of scripts which is important in Javascript. This is why some components might break. Regretfully, this falls outside the scope of our support as this is an advanced topic and involves a third party plugin, script or service. Moreover, optimization is tricky as the setup differs from site to site.
Thank you for understanding.
-
AuthorPosts