NAVI

How to solve the compatibility issue between WP Rocket and EU Cookie Law

Tutorial Compatibility Wprocket Eu Cookie Law Boris Hoekmeijer

Upon installing the EU Cookie Law plugin (which is listed on the WP-rocket site as compatible), I encountered an issue which turned out to be between EU Cookie Law and the WP Rocket caching plugin:
The cookie banner would not disappear when clicking the OK (acceptance) button.

This I could resolve by adding the /wp-content/plugins/eu-cookie-law/js/scripts.js script to the exclusions in Java concatenation in the WP Rocket settings.

After that though, the problem still persisted on mobile browsers.
This was resolved with the help of WP-rocket support: By enabling “Auto Block” and “Exclude Scripts” in the EU Cookie Law settings, the issue disappeared.

I’m posting it here so others may get this issue fixed as well!


foto Boris Hoekmeijer
My name is Boris Hoekmeijer, I'm a webdesigner and graphic designer.
I sometimes run into a problem for which I have to find my own solution because Google just won't tell me. That's when I climb behind my mechanical keyboard, and fire away until a tutorial materializes. One of the great things about the web: we can all help each other!
If this article has helped you, or if you have anything to add or ask, please leave a comment or share the post.
Cheers!

© ★ Published: May 31, 2018
Leave your thoughts

Leave a Reply

Your email address will not be published. Required fields are marked *