Amit Bhawani Blog

Stay Updated!

Powered by Genesis

You are here: Home / Wordpress Guide / Increase Wordpress Blog Loading Speed by Compressing CSS Files

Increase WordPress Blog Loading Speed by Compressing CSS Files

April 26, 2010 by Amit Bhawani 2 Comments

The blog’s loading speed is one of the most important factor for many reasons like Google Search Engine Rankings, making visitors access faster blog etc. Normally most of the bloggers use professional looking WordPress themes which are heavily coded with a lot of css codes and Images. The Images can be easily optimized with the use of Image Compression Software’s.

CSS CompressorIf you have huge number of visitors to your blog, then you can save up bandwidth too by compressing the CSS Files, because any file reduction on the web hosting files can save up both the Space & Bandwidth. We would recommend using this tool which offers with a lot of customization options to your CSS Files.

Initially you need to paste down all the CSS Code from your style.css file which is located in the themes folder of your WordPress installation. You need to check the following options :

Spaces and tabs
Replace multiple spaces with just one space
Remove space around chars ;:{},
Leave space between selectors
Leave space between properties
Remove tabs

New lines handling
Leave lines as they are
Replace multiple empty lines with just one empty line
Remove all newlines

Comment handling
Don’t strip any comments
Strip ALL comments
Strip comments at least chars long

Other options
Compress color codes where possible
Remove unnecessary semi-colons
One command per line

My original CSS File was of around

Next once you click on the ‘Compress it’ button, the Online tool will perform all the tasks and then give you a quick report as shown below.

Compression results :
Original size: 27370 bytes
Compressed size: 21828 bytes
Savings: 5542 bytes (20%)

Overall a savings of 20%-60% which means that you would be saving around a few GB’s of Bandwidth of you have a million page views every month along with a faster loading blog which would keep visitors return to your blog regularly.

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

About

My name is Amit Bhawani and here I like to share my internet/tech experience with my online readers. You can follow me on Twitter, Facebook & Instagram at @AmitBhawani I am also the Editor-in-Chief of PhoneRadar & Master Gadgets

About Amit Bhawani

My name is Amit Bhawani and here I like to share my internet/tech experience with my online readers. You can follow me on Twitter, Facebook & Instagram at @AmitBhawani

Comments

  1. GEORGE says

    October 7, 2010 at 3:45 am

    Thank very much for information

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Timeline

Check out Just EV Tweets by @amitbhawani

Recommended To Read

  • Data Patterns (India) Limited IPO Details
  • Medplus Health Services Limited IPO Details
  • Rategain Travel Technologies Limited IPO Details
  • Anand Rathi Wealth Limited IPO Details
  • Tega Industries Limited IPO Details