Hacker News new | ask | show | jobs
by jacquesm 5860 days ago
You can't really be sure without running all of your javascript code and checking all of your pages, after all some hidden bit of javascript might change a style based on some event to match one in the css, it might even do it by combining various terms to form the selector, and it might manipulate the ids and classes of elements already on the page.

That's a tricky problem. I'm not aware of a tool, but if you find one I'll be happy to test it, I have a few of those questionable items in my style sheets that are still there 'just in case'.

1 comments

So do I, and it's a pain. some of my CSS files feel bloated and unnecessarily big, but it's an even bigger pain to go through the whole codebase and check everything out by hand.

It's a problem and if there's a solution out there it would make me very happy.