3 ms·
Wait. If your JavaScript is only going to execute in 1 version of the V8 engine forever why use JQuery? Serious question. I’m not a huge JS Develoler but when
by valarauca1 9y ago
Wait.
If your JavaScript is only going to execute in 1 version of the V8 engine forever why use JQuery?
Serious question. I’m not a huge JS Develoler but when I dabbled I was told JQuery was there to soften the differences between browsers.
- acdha 9y agojQuery also provided a ton of usability improvements which many developers learned how to use. In many cases those are now obsolete[1] but there's a lot of habits and, more importantly, library code which uses jQuery. Migrating away from that would require replacing all of that code as well before you can see any savings in network transfer or memory usage. 1. For example, how many projects could basically use this for a significant fraction of their jQuery calls: let $$ = (selector, scope = document) => { return Array.from(scope.querySelectorAll(selector)); }; (that's viable on the web now; with a single modern target you could even drop the Array.from bit)