I know that they use Google Closure for their Js files in 1.4 but what about css?
1 Answer
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.
6 Comments
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.
Marko
Good answer, what about the JS though?
Nick Craver
@Marko - That part's in the question :) The 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.
Julian Aubourg
@Nick, well, CSS minification can be complicated when it gets a little farther than spaces and comments removal... like rules optimisation. ;)
Nick Craver
@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.
|