Re:How to Switch from JQuery to Vanilla JavaScript with Boot...
by austincheney on Sunday August 02, 2020 @11:07AM
(#24029157)
I prefer to assign events handler's directly to node event properties instead of addEventListener. The only advantage to addEventListener is that you can plug in a bunch of marketing spyware nonsense without worry that its going to clobber your event assignments.
If adding 90kb helps me write `$(document.ready()` instead of `window.addEventListener(DOMContentLoaded)`, I'd rather add that because making code more intuitive and readable is what software engineering is about.