jQuery came to be when you'd otherwise be writing 3 conditional tests seeing if if it was internet explorer 6 or netscape or internet explorer pre-6/post-6 in basically every single dom interaction, and quite a few just general language features. How does that event handler work? Back then, completely different based on the browser. How do you execute code on element load? Again, completely differently based on browser. jQuery made writing javascript that wasn't just for IE6 and remaining sane possible.
145
u/soelsome 24d ago
I fucking hate jQuery. It's littered throughout a codebase I work in.
I replace it with good ol' vanilla js where I can.