pressidium-cookie-consent
pressidium-cookie-consent copied to clipboard
Small Issue with PageSpeed Insights
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.