Re:A day without JavaScript
by emodendroket on Wednesday June 07, 2017 @01:02PM
(#14507986)
Well, define "huge." It's like 28KB that your user may already have cached if you use a CDN. https://mathiasbynens.be/demo/jquery-size
I meant huge in terms of functionality. It supports so many things that you can't possibly need everything.
Event + 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.
Re:A day without JavaScript
by emodendroket on Wednesday June 07, 2017 @01:17PM
(#14508101)
Oh. 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.
Um what? jQuery is huge. You won't possibly use everything in it.