DEV Community

Discussion on: Do you have fond memories of old codebases you no longer work on?

Collapse
 
lexlohr profile image
Alex Lohr

I created a small (~1kb gzipped) vanilla js module in my previous job to toggle, add and remove class names of any elements that could be selected with a CSS query on click (+mobile support) which was extremely versatile and configurable with data-attributes. It's still heavily in use without any changes and was the reason we could remove jQuery from a lot of simple pages.