hi again webdoc121 🙂
-> you will need to exclude jQuery from being deferred, there’s no way around that except if you would remove all plugins that add JS that require jQuery to be available early
-> you have 2 plugins doing lazyloading; Autopitmize and Smush. they use the same JS library (lazysizes). pick one and deactivate lazyloading in the other
-> if you pick the Smush one, you’ll have to exclude wp-smushit/app/assets/js/smush-lazy-load.min.js from AO & AsyncJS
hope this helps,
frank
Hi Frank,
For CSS and Java minifications, I have only used the AO plugin and for the Deferred Javascript issue, I have used the ASYNC Javascript.
As per your guidance, I have removed the lazyloading in AO and add the following line to exclude the smush lazy load. But still no luck.
As per your guidance, I have removed the lazyloading in AO and add the following line to exclude the smush lazy load. But still no luck.
well, try the other way around maybe, keep AO’s lazyload and disable Smush’es?
and you have not forgotten to exclude jQuery from being deferred? 🙂
I have deactivate the SP Smush and activate the lazyload of AO, but same result…
Had a look; all seems to work for me webdoc121 ;

in that case you’ll have to exclude the featured images from being lazyloaded by adding (a part of) the filename or an attribute (name of value) that is part of the <img tag webdoc121.
Dear, there are dozens of posts. I cannot exclude each image like this. Please suggest me other solution.