4 ms·
> E.g. when importing a library like JQuery, you're paying for a lot of crap in it that you don't need. Although a plus of something like jQuery, if you get it
by tim333 13y ago
> E.g. when importing a library like JQuery, you're paying for a lot of crap in it that you don't need.
Although a plus of something like jQuery, if you get it off google's cdn, is that probably most users will already have it sitting on their disk so you they won't actually need to download it. It gets cached by default for up to a year.
- bad_user 13y agoSure, didn't mean to pick on JQuery, it was a random example and indeed, Google's CDN link is so popular that many users have it cached.