• I am now using the Async Javscript plugin with AO. I have deferred the Javascript and all the images of my website gone. It though resolve the jquery stats in gemetrix. Please help me to solve the issue>

    • This topic was modified 6 years, 5 months ago by Imagewebdoc121.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    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

    Thread Starter Imagewebdoc121

    (@webdoc121)

    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.

    Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    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? 🙂

    Thread Starter Imagewebdoc121

    (@webdoc121)

    I have deactivate the SP Smush and activate the lazyload of AO, but same result…

    Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    Had a look; all seems to work for me webdoc121 ;
    Image

    Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    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.

    Thread Starter Imagewebdoc121

    (@webdoc121)

    Dear, there are dozens of posts. I cannot exclude each image like this. Please suggest me other solution.

    Plugin Author ImageOptimizing Matters

    (@optimizingmatters)

    well, this

    or an attribute (name of value) that is part of the <img tag

    should do it really.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Images gone after deffered javascript using Async Javascript Plugin’ is closed to new replies.