How to find unused classes in my HTML?
css, html, optimization
Solution
This may be helpful: https://code.google.com/p/find-unused-classes/ . According to the description:
It shows classes that exist in css selectors and do not exist on html page and like-verse.
As Jim said, be warned that some classes may be unused by your stylesheets but still used in JavaScript.
Problem
There are lots of tools for finding unused CSS rules in stylesheets, such as Chrome Audits and the Dust-Me Selectors add-on for Firefox (unfortunately not compatible with Firefox Quantum). But what about the other way around? How do I find classes that are in my HTML, that do not exist in my stylesheets?