22 Mar '12, 3pm
Deadweight looks perfect for this: Github: https://t.co/4eDM1onp Railscasts: ASCIIcasts:
Any medium or large-sized website probably has a large amount of CSS spread across one or more stylesheets and the chances are that there are selectors in those stylesheets that are no longer used on any of the pages in that site. These selectors should be removed but they rarely are as there’s always a small risk that they’re still used somewhere on the site. Fortunately a couple of useful tools exist to search through a site and find any unused CSS and we’ll take a look at them in this episode. Dust-Me Selectors The first solution we’ll look at is a Firefox plugin called Dust-Me Selectors . Once it’s installed we can visit a web page, click the pink brush in the status bar at the bottom and Dust-Me Selectors will scan through the page’s stylesheets and pop up a report that shows the unused selectors on that page. Of course some CSS selectors might be marked as unused as ...