[ANN] CSS Compress Plugin (6 posts)

  1. chuyskywalker
    Posted 11 years ago #

    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 wp-plugins.org.

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

  2. NuclearMoose
    Posted 11 years ago #

    Cool. Will it also decompress the file when you want to edit it?

  3. chuyskywalker
    Posted 11 years ago #

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

  4. chuyskywalker
    Posted 11 years ago #

    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 ;) )

  5. dherren
    Posted 11 years ago #

    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?

  6. chuyskywalker
    Posted 11 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.