what is minification?

Minification is the process of removing comments and unnecessary whitespace from a program. Depending on how the program is written, this can reduce the size by about half.

for example

// this function will return the sum of two numbers
function sum(x, y){
return x+y;
}

will be minified to

function sum(x,y){return x+y};

you may need to read a detailed tutorial hereĀ http://www.yuiblog.com/blog/2006/03/06/minification-v-obfuscation/

Leave a Reply

Your email address will not be published. Required fields are marked *