tags:

views:

74

answers:

1

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
@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
Good answer, what about the JS though?
Marko
@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
@Nick, well, CSS minification can be complicated when it gets a little farther than spaces and comments removal... like rules optimisation. ;)
Julian Aubourg
@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
@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