I am embarking on a daunting task of cleaning up an existing site. I'm completely stripping out years worth of CSS added by multiple developers in favour of adding a new framework and my own set of clear CSS styles.
What I want to do is reserve ID for JS and class for CSS. I do know that some of the JS will need to look at classes but that's ok. There are however many times I will be able to change the class name to an ID without issue.
The existing site has 11755 instances of class=" across 457 files but I can't just strip them out because I know that some JS is dependant on some of those classes.
Can anyone provide any help as to how to locate the dependant classes in the JS? I have no idea how to do this other than manually and that seems crazy.
.classstrings?