Mini CSS Minifier 0.3
http://xem.github.com/miniMinifier/
-
Size: 140 characters.
-
Strong minification of CSS code (all the comments and the unnecessary spaces/tabs/line jumps and ";" are removed).
-
Includes a fix for IE that needs a space after some parenthesis (like url(...) no-repeat).
-
Fixes the two annoying 0.2 bugs
- the function needed to be called twice on complex CSS files
- and it removed spaces between classnames like ".class1 .class2"
I tried to go further:
If we want to keep old IE support for the minified code, the minifier can be as light as 120 bytes if the function is written like this:
but it has to be called at least 2/3 times to remove everything, like so:
We can also skip old IE compatibility and be as light as 103 bytes:
but it has to be called multiple times too.
The lightest we can do without needing multiple calls of the function is 109 bytes (without old IE support):
I didn't manage to make one-call IE-friendly version lighter than 134 bytes yet.