Pages

Wednesday, 27 April 2011

Compress your CSS Code : Load your Blog Fast






CSS is the key element of any blog. And when this CSS runs into thousands of lines, it increases the loading time. Use this awesome tool to decrease the loading time. Today I came across a website that can ease your work and can remove all the unnecessary comments and whitespace from a CSS file.

Why to compress CSS file



  • It cleans up your CSS code.

  • Makes CSS editing easy

  • Fast loading of template


How to compress CSS files


1. First copy all the code present in your style.css file

2. Now open CSS Compressor from here

3. Keep the default options as it is but put a tick on One rule per line

4. Paste the code in the first text box i.e Code In and click on Compress

5. Your new compressed code will appear in the second text box i.e Code Out, copy the whole code from there and replace it with the old one and you’re done!

Here is a screenshot to illustrate what is to be done (Click to Enlarge):

CSS Compression

6 comments:

Presentation Domination System said...

Thanks for that awesome posting. It saved MUCH time :-)

Aneesh Bhatnagar said...

You are welcome. Hope the future posts also help you in one or the other way!

Aneesh Bhatnagar said...

Sorry could not post much in past few days. Was a bit busy!

scrapebox indexer said...

you're actually a good webmaster. The site loading velocity is amazing. It seems that you are doing any unique trick. Furthermore, The contents are masterpiece. you have performed a fantastic activity on this subject!

Trenton Frasier said...

This is a well thought out article that I have bookmarked for future reading. Have a good.

Taran said...

Posts like this brighetn up my day. Thanks for taking the time.

Post a Comment