How to minify your JavaScript and CSS.

In this article I will explain why it's really important to compress or in other words, minify your JavaScript and CSS files.

What is minification:

Minifying your code, means the following:


There are different stages of minification and obviously each of them delivers different level of compression. One of the most common minifications on the internet is light minification. Only white space and comments are removed. More sophisticated compression includes more modifications to the code.

How to minify your code:

Now days there are many different tools available on the internet that will help you to minify your code. There are installable software as well as web tools. My personal choice is YUI Compressor since I never had any problems with the output and it's quite easy to use. Here is how to minify your code:

That's how you minify your JavaScript and CSS.

Posted on December 23, 2010 at 2:44 am by admin · Permalink
In: CSS, JavaScript Tricks & Tutorials, jQuery Tricks & Tutorials

Leave a Reply