3 ms·
>Eventually the code will grow to be the size of jQuery anyway. Um what? jQuery is huge. You won't possibly use everything in it.
by adtac 9y ago
>Eventually the code will grow to be the size of jQuery anyway.
Um what? jQuery is huge. You won't possibly use everything in it.
- emodendroket 9y agoWell, define "huge." It's like 28KB that your user may already have cached if you use a CDN. https://mathiasbynens.be/demo/jquery-size https://mathiasbynens.be/demo/jquery-size
- adtac 9y agoI meant huge in terms of functionality. It supports so many things that you can't possibly need everything.
- emodendroket 9y agoOh. Well that's true, but I think the point is more like you end up implementing some significant subset of that, except with homespun code that isn't tested as well.
- sametmax 9y agoEvent + Ajax + DOM is most of jQuery. And is most what your webapp is. Now I'm more of a fan of Vue.JS + axios myself. But if I have to go minimal, 40ko of jQuery is nothing and save so much trouble. All the "you don't need jquery" thing is done by people doing prototypes that are not tested on most browser or assess in term or ressource vs reward, which is a lot of the projects in the JS community.