Javascript & CSS Minification

Is that a real word?

Well anyway, I’m just finishing off a fairly jQuery heavy site I’m building for my girlfriend as an online portfolio site and figured I’d minify the css and jQuery to reduce loading times (as all of my javascript includes combined come to around 100k)- found a really good java app writen by Yahoo(!) called the YUI Compressor – I combined all my javascript into one combined.js file then minified it nocking 30k off the file size.  Did the same with css only making a saving of 2-3 k, but every little helps!  Very easy to use, but it means you do have to install the java runtime :(

  1. #1 by Mir on October 5, 2011 - 14:51

    @you do have to install the java runtime

    No that is not correct!

  2. #2 by shawson on October 10, 2011 - 13:58

    Well, it’s a Java app.. so that is correct; unless you know of some way to run jar files without having Java installed, which I would love to hear, as I really hate having to have Java installed on my PC!

    However I have since found someone has ported the compressor to dot net, so you can put it straight into your build process (without the need for the java runtimes), which is much nicer. You can find details on how to use this on another of my posts here;

(will not be published)