Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #635367

    dhunink
    Participant

    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!

    #635402

    Paul R
    Moderator

    Hi,

    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

    #641754

    dhunink
    Participant

    Just tried that, but the error is stil present 🙁

    The error

    #641819

    Thai
    Moderator

    Hi There,

    Upon checking your website, I couldn’t see the JS errors:

    Could you please clear your cache and try again?

    Regards!

    #642298

    dhunink
    Participant

    But 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.

    #642493

    Christian
    Moderator

    Hey 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.