WordPress.org

Forums

Autoptimize
[resolved] Layout breaks when enabling CSS Optimize (13 posts)

  1. auth1299
    Member
    Posted 2 years ago #

    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/

  2. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    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?

    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?
  3. auth1299
    Member
    Posted 2 years ago #

    I tried your new pluggin and it is working now.

  4. auth1299
    Member
    Posted 2 years ago #

    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.

  5. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    Great! :-)

  6. auth1299
    Member
    Posted 2 years ago #

    I'm finding that minify CSS may not be working correctly. Run a perfomance test from http://www.gtmetrics.com on your site with the pluggin and it will show you what is working and not working.

  7. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, can you be more specific? The results for my personal blog are OK.

  8. auth1299
    Member
    Posted 2 years ago #

    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 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 could save 671B (60% reduction) after compression. See optimized version

  9. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    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?

  10. auth1299
    Member
    Posted 2 years ago #

    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.

  11. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    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!

  12. auth1299
    Member
    Posted 2 years ago #

    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.

  13. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Autoptimize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.