Plugin Author
MihChe
(@mihche)
Hi,
Could you please send me your site url? Let’s see why the variable is missing.
Mihai
Thanks. The site is here.
Plugin Author
MihChe
(@mihche)
Please clear Autoptimize and CloudFlare cache.
Let’s see,
Mihai
Hm… Done, but the error is still there.
Plugin Author
MihChe
(@mihche)
Hi coriannas,
Just contacted you through your website contact form
Mihai
Plugin Author
MihChe
(@mihche)
Hi coriannas,
As we discussed I’ll close this. The issue was caused by the Autoptimize plugin.
Mihai
Hi MihChe;
What javascript did you exclude from JS autoptimization to fix this (for future reference)? 🙂
frank
Plugin Author
MihChe
(@mihche)
Hey Frank,
This is driving me crazy! I have to look into this issue almost every 2-3 days. The problem is that even if the scripts are excluded from JS autoptimization, if there are dependencies, you’ll get the errors.
I am looking into your code and I’ll send you an email later
Cheers,
Mihai
In my case, I can get rid of the error by adding both ‘wp-bruiser,jquery.js’ to the “Exclude Scripts” list in Autoptimizer. It’s not ideal, since it likely slows the site down to some extent, but it doesn’t seem to be awful. In my case, it makes sense to load jQuery in the header anyway, since this is probably not the only plugin that will not work with it loading in the footer, and the speed hit I take isn’t too terrible. I will continue looking for other solutions, but in the meantime, I hope this helps someone else down the line