OK, can you disable just JS or just CSS or just HTML or just Image optimization to see which one might cause this?
Hi again, with “Optimize JavaScript Code?” enable and “Aggregate JS-files” disable it works, so the problem is in “Aggregate JS-files”
OK, now did it work in Autoptimize 2.6.2? can you install that one to confirm (download URL https://downloads.wordpress.org/plugin/autoptimize.2.6.2.zip)?
that is very weird, there were only 2 very small changes in JS optimization … can you post your site’s URL?
OK, and when do you get that error, what should I do on the site to reproduce?
In the mean time; I see “unreachable code” errors in the Autoptimized JS, this is caused by wp-content/plugins/jet-tricks/assets/js/jet-tricks-frontend.js
so you might want to add that to the comma-separated JS optimization exclusion list.
I did what you suggest but my background sliders stop working. And about the first question… If you send me an email I can give you acces to my staging site.
I did what you suggest but my background sliders stop working
so what JS error do you get when jet-tricks-frontend.js is excluded?
If you send me an email I can give you acces to my staging site.
ah so the error is when being logged in/ editing? in that case untick the “also optimize for logged in administrators/ editors” and live happily ever after 😉
so what JS error do you get when jet-tricks-frontend.js is excluded?:
I get no error, simply no images are loading.
ah so the error is when being logged in/ editing? in that case untick the “also optimize for logged in administrators/ editors” and live happily ever after 😉
PERFECT! Solved
I get no error, simply no images are loading.
OK, but I assume when looking at the browser console an error is showing, no?
ok, sorry. I´m a beginner
SCRIPT5007: SCRIPT5007: Unable to get property ‘hooks’ of undefined or null reference
ok, sorry. I´m a beginner
no worries 🙂
SCRIPT5007: SCRIPT5007: Unable to get property ‘hooks’ of undefined or null reference
ah, jet-tricks-frontend.js relies on elementor, so you’ll have to exclude elementor as well I’m afraid (plugins/elementor
).
Now if the only problem is the JS warning I mentioned, but the site works, you could remove wp-content/plugins/jet-tricks/assets/js/jet-tricks-frontend.js from the exclusion list and simply forget about it.
The site works so I remove the wp-content/plugins/jet-tricks/assets/js/jet-tricks-frontend.js Thanks!!!