Title: Layout breaks when enabling CSS Optimize
Last modified: August 20, 2016

---

# Layout breaks when enabling CSS Optimize

 *  Resolved [auth1299](https://wordpress.org/support/users/auth1299/)
 * (@auth1299)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/)
 * My layout breaks when optimizing CSS option is selected. Maybe you need to have
   an exclude option for css files line the java scripts.
 * [http://wordpress.org/extend/plugins/autoptimize/](http://wordpress.org/extend/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638463)
 * Generally speaking, optimizing CSS is pretty harmless when compared to JavaScript.
   There were however some bugs in 1.6.2 in the CSS optimization code that have 
   been fixed in [the development version, maybe you should give that one a spin](http://downloads.wordpress.org/plugin/autoptimize.zip)?
 * Specifically for your site;
    - Did you try with the option “Look only for styles in <head>”?
    - Is there one specific CSS-file which you know is indeed wreaking havoc?
 *  Thread Starter [auth1299](https://wordpress.org/support/users/auth1299/)
 * (@auth1299)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638504)
 * I tried your new pluggin and it is working now.
 *  Thread Starter [auth1299](https://wordpress.org/support/users/auth1299/)
 * (@auth1299)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638505)
 * I also modified my htaccess. I wrote my own htaccess file to lock down wordpress
   and I added an exception to allow clients to access the cache directory.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638506)
 * Great! 🙂
 *  Thread Starter [auth1299](https://wordpress.org/support/users/auth1299/)
 * (@auth1299)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638509)
 * I’m finding that minify CSS may not be working correctly. Run a perfomance test
   from [http://www.gtmetrics.com](http://www.gtmetrics.com) on your site with the
   pluggin and it will show you what is working and not working.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638512)
 * Hmm, can you be more specific? The [results for my personal blog](http://gtmetrix.com/reports/blog.futtta.be/A4bExIUI)
   are OK.
 *  Thread Starter [auth1299](https://wordpress.org/support/users/auth1299/)
 * (@auth1299)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638515)
 * ok, on your report look at item (Minify CSS) under page speed. It will tell you
   that you should minify CSS and it will show you the files that are not minified.
   Your pluggin is supposed to be minifying the CSS supposedly. But it is showing
   as not minified.
 *  Minifying [http://blog.futtta.be/wp-content/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shCore.css?ver=2.1.364](http://blog.futtta.be/wp-content/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shCore.css?ver=2.1.364)
   could save 875B (46% reduction) after compression. See optimized version
    Minifying
   [http://blog.futtta.be/wp-content/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeDefault.css?ver=2.1.364](http://blog.futtta.be/wp-content/plugins/syntaxhighlighter/syntaxhighlighter2/styles/shThemeDefault.css?ver=2.1.364)
   could save 671B (60% reduction) after compression. See optimized version
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638518)
 * Ah, syntaxhighlighter! That plugin is pretty weird as it does not add CSS in 
   the HTML (inline or with links), but has it’s JavaScript load the CSS. So no,
   Autoptimize does not aggregate Syntaxhighlighter’s CSS and I doubt there’s the
   other optimization techniques/ plugins do 🙂
 * Do you see other issues on your site?
 *  Thread Starter [auth1299](https://wordpress.org/support/users/auth1299/)
 * (@auth1299)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638534)
 * I’m finding your pluggin does not work at all under a windows OS, in fact it 
   makes the performance of the site worse by adding it’s own files and processes.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638542)
 * That’s weird; I use XAMPP on my local Win XP machine to work on this (and other)
   plugins while on the train and have had no problems running Autoptimize.
 * That being said, it is clear that Autoptimize does indeed require processing 
   time & power (except if … see next paragraph), but in general (your mileage may
   vary) the amount of files that have to be downloaded will be significantly less
   than without it.
 * Regarding the processing time & power; that’s where companion plugin WP Super
   Cache (or QuickCache or W3 Total Cache) come in. If the HTML (after having been
   parsed by Autoptimize) is cached by WP Super Cache, Autoptimize isn’t consulted
   again, so there is no processing overhead at all. That’s when you’ll get the 
   best performance boost possible.
 * If you have gtmetrics (or webpagetest.org) stats that I could look at to see 
   what is going on, or the URL of your blog, I’d be happy to have a look!
 *  Thread Starter [auth1299](https://wordpress.org/support/users/auth1299/)
 * (@auth1299)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638551)
 * What I am saying is that it does not do any of the functions while being hosted
   on a windows 2008 r2 IIS web server. I ran gtmetrics before activating your pluggin
   and then after and it did nothing. I was wondering if maybe there were certain
   functions that require apache web services or linux OS.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638554)
 * no, there’s nothing apache of Linux specific in there. I’d be very interested
   in looking into this, but understand if you’d not want to share that information
   here. maybe you instead mall the report url to futtta at gmail dot com instead?

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

The topic ‘Layout breaks when enabling CSS Optimize’ 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/)

 * 12 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/layout-breaks-when-enabling-css-optimize/#post-3638554)
 * Status: resolved