CSS code Minification or Compression refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser – e.g. code comments and formatting, removing unused code, using shorter variable and function names, and so on.
The purpose of minification is to increase the speed of a website.
Minimization can make a script up to 20% smaller, resulting in a faster download time.
Some developers will also use it to ‘obfuscate’ their code.
This makes it difficult for the code to be read, thereby making it more difficult to reverse engineer or copy.
It is also common practice to combine all the CSS files for a single website into one file. This has a number of benefits.
It reduces the number of HTTP requests that need to be made to get all the elements of a website.
It also makes minification and gzips compression more effective.
This CSS Code Compressor Tool allows you to paste your CSS stylesheet code and it returns minimized version in a matter of seconds.