Re:Ask HN: How do you find unused CSS?
by seanwilson on Tuesday March 22, 2016 @05:30PM
(#11340098)
> Ideally what you need is some tool that you start, use the site, then stop and it marks any CSS it didn't "see" used throughout that time. But I don't know of such a tool.
You can probably make a tool which works 90% of the time but it's an unsolvable problem to completely automate given the dynamic nature of web and JavaScript code.
You can probably make a tool which works 90% of the time but it's an unsolvable problem to completely automate given the dynamic nature of web and JavaScript code.