I was looking for a better CSS compressor that would be fast and would remove the unused CSS code. I could not find such a tool. However I found few that are worth looking:

http://yuilibrary.com/download/yuicompressor/
http://code.google.com/p/minify/
http://code.google.com/p/cssmin/

You may already know about these. The YUI compressor will be interesting to incorporate in AdvAgg.

Comments

mikeytown2’s picture

If they can run in PHP that would be ideal. Otherwise one might need to install v8, java or python in order to use the other css compression libraries. I'm open to the idea, and creating an advagg sub module that uses one of these would be fairly easy to do.

ANDiTKO’s picture

I am very interested for http://code.google.com/p/minify/
I have used it in a simple HTML webiste and its Blazing fast!

Also it uses PHP and there are already modules for "Wordpress" and "Zend Framework" that use that code, so making a Drupal version is possible.

mikeytown2’s picture

Status: Active » Fixed
udvranto’s picture

Thanks Mikey!

mikeytown2’s picture

Title: Search for a Better CSS Compressor » Search for a Better CSS Compressor - YUI CSSMin added
mikeytown2’s picture

Started to watch this repo as this appears to be the true source of the PHP port of YUI: https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port Will update as necessary

mikeytown2’s picture

updated advagg to the latest version of this library and removed Stephen Clay's minify css as it breaks things on my site (code was disabled anyway).
http://drupalcode.org/project/advagg.git/commitdiff/7ca9a519ce9e5ea23a8c...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.