by simonw · 11y ago · 0 comments
My use-case is for analyzing a large, existing website that has many years of accumulating CSS, and getting a feel for which blocks of code can be safely eliminated.
I'm pretty sure what I'm after needs a full-blown DOM to work effectively - either with something like PhantomJS or even running as a Chrome Extension. So far I haven't seen anything that fits the bill.
IMHO, do it offline and out of browser would be easier. But I also think doing it directly with the codes can be hard too since there are so many way that those css will be added to templates.
1: https://addons.mozilla.org/en-US/firefox/addon/dust-me-selec...
It's fairly easy to roll your own version of this and do analysis.