Support » Plugins » [ANN] CSS Compress Plugin

  • Automatically removes comments, new lines, tabs, and gzip compresses (GZIP) any CSS file called with “<?php bloginfo(‘stylesheet_url’); ?>”

    Just activating the plugin with the default Kubrick theme will reduce the CSS file from 8k to 1.7k.

    CSS Compress

    Be Aware: This plugin is very beta. There is a chance it will do something odd, or just not work. If that happens turn it off and drop a line here or submit a ticket at

    Also, I’m currently planning on upgrading the plugin with the ability to compress CSS that is called via @import commands.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Cool. Will it also decompress the file when you want to edit it?

    It only compresses it when browsers call it. The file on your server is never modified.

    Doh, I guess that’s kind of important to note, eh?

    Yeah, the file on is compressed on the fly when called with the built in WP function “<?php bloginfo(‘stylesheet_url’); ?>”

    The actual file is not modified, so you can use returns, tabs, and comments galore and not worry about the file size getting to large because you have wordy comments. (And you get no excuse to not comment 😉 )

    Slick… I wonder if this would function in my situation.

    For a school, I manage multiple “nested” blogs. IE, there’s a main school site and many departments and clubs have their own blogs which are linked to from the main blog. The css file in the “sub-blogs” contains just a import statement of the primary site CSS files so I can make global changes by editing only one CSS file.

    Would this plugin also do the compression of imported CSS files?

    dherren: no, not yet. I’m working on that feature though, so check back next version ;D

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[ANN] CSS Compress Plugin’ is closed to new replies.