Title: Images gone after deffered javascript using Async Javascript Plugin
Last modified: July 22, 2019

---

# Images gone after deffered javascript using Async Javascript Plugin

 *  [webdoc121](https://wordpress.org/support/users/webdoc121/)
 * (@webdoc121)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/images-gone-after-deffered-javascript-using-async-javascript-plugin/)
 * 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, 10 months ago by [webdoc121](https://wordpress.org/support/users/webdoc121/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fimages-gone-after-deffered-javascript-using-async-javascript-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/images-gone-after-deffered-javascript-using-async-javascript-plugin/#post-11753932)
 * 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 [webdoc121](https://wordpress.org/support/users/webdoc121/)
 * (@webdoc121)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/images-gone-after-deffered-javascript-using-async-javascript-plugin/#post-11754010)
 * 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 [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/images-gone-after-deffered-javascript-using-async-javascript-plugin/#post-11754057)
 * > 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 [webdoc121](https://wordpress.org/support/users/webdoc121/)
 * (@webdoc121)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/images-gone-after-deffered-javascript-using-async-javascript-plugin/#post-11754112)
 * I have deactivate the SP Smush and activate the lazyload of AO, but same result…
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/images-gone-after-deffered-javascript-using-async-javascript-plugin/#post-11754154)
 * Had a look; all seems to work for me webdoc121 ;
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/images-gone-after-deffered-javascript-using-async-javascript-plugin/#post-11754291)
 * 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 [webdoc121](https://wordpress.org/support/users/webdoc121/)
 * (@webdoc121)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/images-gone-after-deffered-javascript-using-async-javascript-plugin/#post-11754302)
 * Dear, there are dozens of posts. I cannot exclude each image like this. Please
   suggest me other solution.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/images-gone-after-deffered-javascript-using-async-javascript-plugin/#post-11754322)
 * 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.

 * ![](https://ps.w.org/async-javascript/assets/icon-128x128.png?rev=1839260)
 * [Async JavaScript](https://wordpress.org/plugins/async-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/async-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/async-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/async-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/async-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/async-javascript/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/images-gone-after-deffered-javascript-using-async-javascript-plugin/#post-11754322)
 * Status: not resolved