I could be wrong, but if you use a CDN, won't jQuery be already cached for 99% of users? I can definitely imagine that filesize is an issue with less popular frameworks, but I'd wager that it really doesn't matter with jQuery.
If anyone has statistics on this, I'd love to see them!
You're in fact wrong, the chance that users will have exactly the same version of jQuery cached is pretty small. [1]
If you want to read more about jQuery on cdns, there is a long discussion on html5boilerplate github page. [2]
[1] http://statichtml.com/2011/google-ajax-libraries-caching.htm...
Well dang, thanks for pointing out my error and providing sources to back it up.
If you are using Angular already, you have a lite jQuery lib loaded. Perhaps it covers the cases you want to use jQuery for?
I've tried this but have found that in almost all cases jqLite doesn't implement something needed for a given lib. Moreover, a single lib not working with jqLite spoils the entire thing.
For Angular there's https://github.com/import-io/angular-toggle-switch
This comment shouldn't be taken as a rant or complaint, I know why the current state of libraries is what it is, just an observation that jQuery seems to be, at least for me, transitioning from being 'an assumption' into 'the thing I want to get rid of'.