Feb
29
CSS Compression
I have recently become more ‘proactive’ in managing the file sizes of everything I do, and I am always looking for ways to shrink my files without losing any quality or functionality.
Enter CSS Compressor.This neat tool will strip all the whitespace off your CSS, remove comments ( should you choose to do so ) and will output the new contents for you. I used this on a recent project and I shaved 2kb off of the file, not a whole lot but every bit counts ( especially when the site is selling a product ). I would highly recommend first making a backup of your original CSS file somewhere in case you ever need to make changes, as this renders your coding almost completely illegible.Give it a try and tell me how much space you recovered in doing so!













#1 | On February 29th, 2008, Addison Kowalski said:
Very cool! The only thing I am worried about is if I want to show off my CSS to someone. On the other hand, if I wanted to hide it or make it hard to look at, this is a very cool tool. As far as the compression; to me what is the difference between 2KBS compared to 5KBS (Don’t say 3KBS).
#2 | On February 29th, 2008, Jamie said:
It may not be a large difference and may not even be noticeable, but if your site gets a lot of visitors, maybe even if your site got on the front page of Digg, having a smaller file size is going to help. The difference in one page load may be negligible but when you are looking at the page loads after a Digg effect, the usefulness will become clear