Search code examples
cssstylesheetdefunct

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


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?


Solution

  • 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.