I know that they use Google Closure for their Js files in 1.4 but what about css?
+3
A:
jQuery doesn't have any CSS:)
jQuery UI doesn't minify their CSS :)
That being said, I use the YUI Compressor to minify CSS in projects as a build step and it's worked very well, CSS minification isn't that complicated, so it's hard to go wrong here.
Nick Craver
2010-07-14 23:49:29
@Marko - I don't recall them doing this, maybe they did at some point, but not in the past year or two, that I've ever come across anyway.
Nick Craver
2010-07-14 23:55:03
Good answer, what about the JS though?
Marko
2010-07-14 23:55:45
@Marko - That part's in the question :) The [closure compiler](http://code.google.com/closure/compiler/) ...we're also using that in the build to compress JS as a pre-build step on the web project, if you're completely outside the pages you'll get a ton of additional compression out of the advanced optimizations.
Nick Craver
2010-07-14 23:57:51
@Nick, well, CSS minification can be complicated when it gets a little farther than spaces and comments removal... like rules optimisation. ;)
Julian Aubourg
2010-07-15 00:11:34
@Julian - I don't see how any minifier could do that though, since it would require every scenario of markup that goes with it. I do agree you can *optimize* CSS better, but that's not the same as minification.
Nick Craver
2010-07-15 00:14:11
@Nick: http://csstidy.sourceforge.net/ for instance optimizes expressions within a given rule. I saw others that would also unite similar rules to avoid repetition. You'd be surprised. Though most of those solutions fail when confronted to production code with non-standard stuff ;)
Julian Aubourg
2010-07-15 00:33:39