Removing unused selectors in a CSS stylesheet?

Posted by Legend on Stack Overflow See other posts from Stack Overflow or by Legend
Published on 2010-06-03T01:07:13Z Indexed on 2010/06/03 1:14 UTC
Read the original article Hit count: 229

Filed under:
|
|

I've been developing a web app for a few weeks now and ended up with about a 1000 lines. I am sure not all the selectors are being used and am trying to clean it up. At the same time, I don't want to do it manually for obvious reasons.

Is there a safe and an efficient way to remove unused selectors? For this, am I supposed to navigate the entire website to let it know which selectors are not being used? (I use javascript to add some selectors so these might not show up until a particular usecase is seen)

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html