How do I identify and eliminate unused CSS styles from my bloated stylesheet?

Cornish picture Cornish · Aug 26, 2010 · Viewed 19.5k times · Source

I have a legacy stylesheet that is now full of unused styles. The problem is identifying the necessary from the unnecessary. Are there any tools to help with this?

Answer

Fenton picture Fenton · Aug 26, 2010

CSS Usage is a great Firefox add-in. You can browse multiple pages and it will work out which rules haven't been used on any of them - so it is more accurate than a tool that scans a single page.