Title: Minify HTML not working
Last modified: August 31, 2016

---

# Minify HTML not working

 *  Resolved [oschicus](https://wordpress.org/support/users/oschicus/)
 * (@oschicus)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/minify-html-not-working-1/)
 * Dedar Autoptimize admin,
 * I am writting you beacause after having applied your plugin settings, I am getting
   this meassage from the google page speed insights:
 * Minify HTML for the following resources to reduce their size by 1,017B (18% reduction).
   
   Minifying [http://www.promocouponholmes.com/code/priceline-promo-code/](http://www.promocouponholmes.com/code/priceline-promo-code/)
   could save 1,017B (18% reduction) after compression.
 * I believe that I have set your plugin correctly since I have “marked” the option“
   Optimize HTML Code”
 * Could you help me?
 * Thanks,
 * Oscar
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/minify-html-not-working-1/#post-6916567)
 * The HTML is minified actually, disable the option and check out the GPSI report
   to observe the difference.
 * The reason GPSI claims it can be minimized even more, is that there is quite 
   a lot of inline javascript (with a lot of comments and tabs and spaces) which
   the HTML optimizer leaves as is. The fact that that inline JS isn’t aggregated
   is because its mimetype (application/javascript) is not in [AO’s whitelist of known good script types](https://github.com/futtta/autoptimize/blob/master/classes/autoptimizeScripts.php#L94)(
   which I’ll put on the todo-list to improve further).
 * hope this explains,
    frank
 *  Thread Starter [oschicus](https://wordpress.org/support/users/oschicus/)
 * (@oschicus)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/minify-html-not-working-1/#post-6916763)
 * Perfect Frank,
 * This has helped a lot and as you said “disabling it” you obtain a different result.
 * I can know understand the logic.
 * Love your plugin and I have left a review.
 * Thanks again,
 * Oscar
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/minify-html-not-working-1/#post-6916764)
 * you’re welcome!
 * fyi; the in-development version of AO (which will become 2.0.1 once) now also
   aggregates application/javascript (and text/ecmascript and application/ecmascript),
   [cfr. this commit](https://github.com/futtta/autoptimize/commit/a012e0105f0b468117d29b08392a6fec443b205b).
 * have a nice weekend,
    frank

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

The topic ‘Minify HTML not working’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/minify-html-not-working-1/#post-6916764)
 * Status: resolved