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
1 2 3 4 |
// this function will return the sum of two numbers function sum(x, y){ return x+y; } |
will be minified to
1 |
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