Indeed, this works fine for pages which just contain CSS for that specific page but I'm not sure how often that actually occurs in the wild. And if you've got just a one page site then surely managing the CSS for that isn't a big issue?
For most of the sites I've worked on, I bundle up the CSS into a main stylesheet and then often one specific stylesheet per-section. If this could spider the whole site and generate a report on that then it would certainly be more useful.
Thanks for the feedback!
I halfway implemented traversing whole sitemaps, but never finished because the waits were getting so long that I would need to move away from django and towards something like twisted where I could incrementally update the results and work asynchronously.
Would you rather give a sitemap or a representative list of URLs?
Re:Ask HN: Review my app, UnusedCSS.com
by daleharvey on Sunday March 28, 2010 @02:08PM
(#1224966)
I am the same
I would prefer it to work along the same lines as http://validator.w3.org/checklink where it just automatically spiders
For instance, I fed it the root URL, and most of the unused selectors it surfaced are in fact used on other parts of the website.