Bug with “Load JavaScript deferred” WP Rocket
-
Hello, if i active the option “Load JavaScript deferred” on WP Rocket the JS script of cookie notice does’t work.
I have this error on console:
t.fn.getCookieNotice is not a functionI checked the code and it appears this error is caused by the fact that WP Rocket adds a defer to the JS with this option and in JS file
$(document).readyits call before assignments.The quick fix may be to move the assignments before
$(document).ready, its work for me
The topic ‘Bug with “Load JavaScript deferred” WP Rocket’ is closed to new replies.