Monday, June 27th, 2005
Jazmin and JavaScript Minifier
<>p>A blast from the past here. A lot of people are not aware of Douglas Crawford’s JavaScript Minifier which does what it says on the box:JSMin is a filter which removes comments and unnecessary whitespace from JavaScript files. It typically reduces filesize by half, resulting in faster downloads. It also encourages a more expressive programming style because it eliminates the download cost of clean, literate self-documentation.
Think,
jsmin yourjsfile.js condensed.js
There has been a more recent port to C#, called Jazmin.
Related Content:











hi dion,
Thanks. was looking for something like this for a while now.
Is there something similar to ProGuard( Java class file shrinker and obfuscator) in javascript that is plug and play(commercial/otherwise). I’m thinking that we can reduce the size of javascript objects by decent obfuscation ?
BR,
~A
A simple online javascript minifier/obfuscator can be found at
http://netspurt.com
This is based on dojo’s shrinksafe