3 ms·
jQuery 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 habi
by acdha 9y ago
jQuery 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)