Skip to content
WJunction - Webmaster Forum

[Tutorial] Compress your CSS Code to make your site load fast

Status
Not open for further replies.
Okay guys, here is a tutorial, which can speed up the loading time of your website drastically!!!Give it a try if you want!!!

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 textbox i.e Code In and click on Compress
5. Your new compressed code will appear in the second textbox i.e Code Out, copy the whole code from there and replace it with the old one and you’re done!


Link to the CSS Compressor :
Code:
http://tools.arantius.com/css-compressor
PeRsNaLiD
 

13 comments

I/We will try it on IRapidLeech template although its more fast already
Is there a speed tester or such thing available so we can compare how much difference your tutorial made in loading time or speed
 
Sorry, i didnt come across such a thing yet!!!

The website i gave you above, shows you the space it saved and also the Bytes reduced!!!! :)
 
try http://gtmetrix.com/ for testing ur site load and speeds

I love this site ^^


About CSS compression. This is a good thing to do and it's not just CSS you can compress. You can compress your javascript too. Their's hundreds of thousands of free online compressors available to try. Just be careful. Sometimes if you compress something too much they won't work. Also be careful if you've a lot of CSS3 as the compressors don't work that well on these since their not approved and a standard hasn't be defined.
 
Status
Not open for further replies.

About the author

P
Banned · Joined
318
Messages
1
Reactions
18
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom