pressidium-cookie-consent icon indicating copy to clipboard operation
pressidium-cookie-consent copied to clipboard

Small Issue with PageSpeed Insights

Open WebsCat opened this issue 9 months ago • 1 comments

First of all, thank you very much for developing the plugin, I find it very good.

In the Google Chrome console, I get an error: Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

When I look at the code, it is in a function: <script> document.getElementById('cookieConsentButton').addEventListener('click', function() { //window.pressidiumCookieConsent.show(); pressidiumCookieConsent.showSettings(); }); </script>

This small issue affects the PageSpeed Insights results as it reduces the "Best Practices" score by 4 points.

Would it be possible to fix this issue?

Thank you!

Sorry, it's my mistake. I tried it on another website without any cache plugin and there is no problem. I will have to review the W3 Total Cache settings.

WebsCat avatar May 20 '24 11:05 WebsCat