There's quite a few ways! :) You can use this link to do it directly from your browser: http://fmarcia.info/jsmin/test.html
Or if you're more skeptical the original implementation and ports to every programming language you can eat with a spoon are here: http://javascript.crockford.com/jsmin.html Caution: When doing any sort of javascript (or code in general) compression do test thoroughly before and after... stuff like missing semicolons (as mentioned by Mike) can really fudge your code! :) On Sep 3, 12:44 am, viktor <[EMAIL PROTECTED]> wrote: > How do you minify a .js file? > > On Aug 29, 11:04 pm, Bil Corry <[EMAIL PROTECTED]> wrote: > > > Alex Weber wrote on 8/29/2008 10:15 AM: > > > > i'd rather use packed then minified though :) > > > Use minified, not packed. Although a packed file is smaller, it's overall > > performance is worse when compared to minified: > > > ----- > > This means, in the end, that using a minifed version of the code is much > > faster than the packed one - even though its file size is quite larger. > > > <http://ejohn.org/blog/library-loading-speed/> > > ----- > > > - Bil