jQuery mantra has always (or at least since 2010) been write less, do more and that's still true today. writing $() is faster than writing document.querySelectorAll(), writing $("foo").on("click",function(){console.log(this.textContent+" clicked");}); is faster than writing
loading jQuery from a CDN (like GoogleCDN, cdnjs, or jsdeliver) is cheap, while developer time isn't cheap. also jQuery is such a popular library that chances are good the browser cache already has it if you use a popular CDN.
also, minified jQuery 3.5.1 is 0.08 megabytes of code, and 0.02 megabytes gzip-compressed
View all comments
Show parent comment
5
u/Takeoded May 09 '20 edited May 09 '20
jQuery mantra has always (or at least since 2010) been
write less, do moreand that's still true today. writing$()is faster than writingdocument.querySelectorAll(), writing$("foo").on("click",function(){console.log(this.textContent+" clicked");});is faster than writingjQuery's
write less, do moreis still true.