|
|
|
|
|
by austincheney
2148 days ago
|
|
Yes, absolutely. First of all if you use querySelector or querySelectorAll for everything your code will likely be smaller without jQuery, but it will be just as slow. If you access the DOM with string parsing your application can be anywhere from 1200-10000x faster. It will be more verbose, but certainly not as much as most people fear. If you are good with scope and abstractions you will solve for most of the verbose DOM interaction with reuse and custom abstractions. So really dumping jQuery means choosing between smaller code or substantially faster code and both are a win. |
|
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.