Problem with Litespeed Cache, Adsense and The Moneytizer

[ad_1]

Don’t know adsense very well and don’t know moneytizer at all, but what are the JS optimization sub-options? Have you tried playing around with those?

Thread Starter
Taoku

(@taoku)

Hello,

By defect I have Aggregate JS-Files only, but I’ve tried to exclude and other stuff. Sometimes it does the same and sometimes it doesn’t generate that problem but The Moneytizer doesn’t work. Everything works well only if I deactivate JS Optimize completely so it has to be something in Autoptimize but can’t figure what 🙁

OK, so things work when “optimize JS” is on but “aggregate JS” is off. what happens when you enable “don’t aggregate but defer JS” and optionally “also defer inline JS”?

Thread Starter
Taoku

(@taoku)

No, things only work properly when Optimize JS is off. With the settings you propose it works, but PageSpeed cries in Mobile performance 🙁

OK, but pagespeed is not our concern at the moment, we’re trying to identify the problem with the Moneytizer JS 🙂

but I had a look at the HTML source with Autoptimize disabled (by adding ?ao_noptimize=1 to the URL) and I still see the inline JS is being deferred, what plugin is doing that?

Thread Starter
Taoku

(@taoku)

Hey!!

I solved this by using Don’t aggregate but defer + Also defer inline JS and doing a Litespeed setup from scratch. Now everything works! Anyway, maybe your team want to look further into this for the future.

“what plugin is doing that?” No idea… I just had Autoptimize enabled and Litespeed Caché with optimize css, js and html off.

Best.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer