Mobile app version of vmapp.org
Login or Join
Frith620

: How to identlfy unused css selectors and rules for css pages which cover multiple pages and are installed locally? I'm looking for a tool which would be able to identify unused and/or duplicate

@Frith620

Posted in: #Css #WebDevelopment

I'm looking for a tool which would be able to identify unused and/or duplicate css selectors and rules, with the following two restrictions:


The tool would have to be able to analyze css pages which are used for many HTML pages, so a tool like Dust-Me won't help.
The tool should also work on a local installation, because I'd also like to be able to check my css at development stage. This would rule out online css verifiers.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Frith620

2 Comments

Sorted by latest first Latest Oldest Best

 

@Phylliss660

I have tried Dust Me and CSS Usage in the past with some success to get an initial list of unused css selectors. Then what I do is focus on searching for those potentially unused selectors manually. At least that reduces the scope of the problem from hundreds of selectors to a few dozens.

10% popularity Vote Up Vote Down


 

@Kristi941

There is a Firefox addon called CSS Usage which shows all styles used/unused on a page.

It claims to do multiple pages but in my experience it seems to be somewhat unreliable in its results. Regardless it has helped me out a bunch in the past.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme