Minification (also minimisation or minimization) is the process of removing all unnecessary characters from the source code of interpreted programming languages or markup languages without changing its functionality.

These unnecessary characters usually include white space charactersnew line characterscomments, and sometimes block delimiters, which are used to add readability to the code but are not required for it to execute.

Minification reduces the size of the source code, making its transmission over a network (e.g. the Internet) more efficient.

Example

*// This is a comment that will be removed by the minifier***var** array = [];
**for** (**var** i = 0; i < 20; i++) {
  array[i] = i;
}

is equivalent to but longer than

**for**(**var** a=[i=0];i<20;a[i]=i++);

source: https://en.wikipedia.org/wiki/Minification_(programming)