Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing unused selectors in a CSS stylesheet?

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)

like image 720
Legend Avatar asked Jun 03 '10 01:06

Legend


1 Answers

Not sure why Dust-Me-Selectors is in there as a comment, but not an answer...

like image 128
Dave Markle Avatar answered Sep 28 '22 09:09

Dave Markle