r/ProgrammerAnimemes • • Mar 01 '20

$(‘#i-hate-it’)

Post image
952 Upvotes

49 comments sorted by

View all comments

Show parent comment

4

u/Takeoded May 09 '20

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