Closed WebsCat closed 3 months ago
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.
Maybe the error could be handled with if (cookieConsentButton) {
Hey, @WebsCat!
Thank you for your kind words and for mentioning that. I’ll look into adding an if (pressidiumCookieConsent)
condition in a future version of the plugin.
I’m glad everything was resolved.
I’m closing this issue. If you have any more questions, feel free to ask 🙂
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.