CSS optimizer

Here is a nice tool for those writing CSS by hand or even using WYSIWYG tools to do it. The CSS optimizer, filters out all unneeded tags (like defining colors twice) and combines things like fonts, backgrounds, borders,… The result should be a better and smaller CSS file, which results in a faster page-load.

I tried it on the version 2 stylesheet of this site and I should change only two things according to the optimizer:

  1. Change: background-color: #xxxxxx; to background: #xxxxxx;.
  2. Change: margin: 10px auto 5px auto; to margin: 10px auto 5px;.

These changes would save me 185 bytes :p. Hey, anything helps.

There is only one downside to it, IMHO, which is that is converts the letters in a hex-value to lowercase.

2 Responses to “CSS optimizer”.

  1. that’s a side affect which i didn’t notice before publishing, if it’s easy to fix then i’ll do it 🙂

  2. Thx, that would be great.

Comments are closed.