Title: Javascript optimization breaks some things
Last modified: August 21, 2016

---

# Javascript optimization breaks some things

 *  Resolved [shibdib](https://wordpress.org/support/users/shibdib/)
 * (@shibdib)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-optimization-breaks-some-things/)
 * Like the title says using the optimize javascript option breaks a few things (
   adsense, images in posts, etc..) which unfortunately is the main reason I got
   the plugin. I’ll continue to use it for the html and css optimization tho.
 * [http://wordpress.org/plugins/autoptimize/](http://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-optimization-breaks-some-things/#post-4561186)
 * Although not all javascript can be aggregated/ minified (hence the exclusion 
   in the advanced optoins in the configuration screen), normally standard adsense
   should continue to work.
 * Regarding images; these should only be impacted if you have e.g. an image lazy
   loader plugin installed?
 *  Thread Starter [shibdib](https://wordpress.org/support/users/shibdib/)
 * (@shibdib)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-optimization-breaks-some-things/#post-4561224)
 * Got it working
 * images in posts fixed like u said by disabling lazy load.
 * adsense was fixed by ticking the js in the head section and enabling only look
   in head. Those 2 options are the only way it works with js optimization on. (
   this lowers my score on pingdom a bit but it works)
 * for reference the website is [http://www.overlordgaming.us/](http://www.overlordgaming.us/)
 * main issue pingdom shows now is “Parallelize downloads across hostnames”

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

The topic ‘Javascript optimization breaks some things’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shibdib](https://wordpress.org/support/users/shibdib/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-optimization-breaks-some-things/#post-4561224)
 * Status: resolved