Unused CSS finder - Crawl your website and find unused CSS

Unused CSS finder crawls your website (following all the internal links), analyses all the pages and provides a list of unused css-selectors found in your stylesheets.

Add a comment

Replies

Best
Just tried it. Looks cool. Does it counts the unused elements in core css files? I mean default css files of Bootstrap and other frameworks?
all css rules loaded, core, custom, even the tags on the page
cool! found some 'unused selectors' on ;)

Are there any prerequisites to the web pages for it to work?

Pros:

The idea is really usefull

Cons:

Does not work on a page where I know that there are unused CSS classes.

Nope, no prerequisites... Can you please provide your URL so we can check/debug? Thanks!
curious to try this : just need to cross check - it doesn't make me remove css styles used *somewhere*
yes, exactly, it a selector is found on ANY of the pages crawled, it doesn't suggest to remove it
This is nice but one major thing right away... you need to have better error handling... entering in "domain.com" says Done no unused sectors instead of "hey this actually didn't work because we require you to enter http:// or https:// before the domain". And have one for unresolved domains... tested "sldfjsklfjlksdfksdkfsdjlfjdslfjsdfs.com" and it said the same thing. But... that's easy to implement. Cheers!
sure, gonna add all the checks of course! Didn't realize it will get so much traction... Fixing all the stuff asap.
lol understood. cheers

Keep up the good work

Pros:

I've been meaning to find this for a while

Cons:

could go a little bit beyond what it find out

This is great! Only suggestion maybe: there should be an option to ignore some CSS files like Bootstrap/Glyphicons etc.
Noted! Thanks
Will give it a try then
This looks awesome!! Feature request: a version of this but for sass/Scss to identify un-used functions/variables. Could integrate into atom/sublime/visual studio
Finally! I've been looking for this for a looong time!
12
Next
Last