At the moment, I get the feeling that if I start with vanilla JS, at some point I'll need features that only jQuery provide, so I'll either have to reimplement them in my project, or backpedal and add jQuery.
At the moment, I get the feeling that if I start with vanilla JS, at some point I'll need features that only jQuery provide, so I'll either have to reimplement them in my project, or backpedal and add jQuery.
Edit: another reason: slideUp() / slideDown() are very useful and not easy to implement with native code.
- unhandled errors silently swallowed [1] (this is the case for the most popular polyfill [1] too - the one recommended by fetch polyfills, BEWARE [3])
- no 'finally' method, despite pretty much everything in a UI needing some common 'cleanup' after e.g. a fetch()
- not cancellable
Right now you're better off with `$.ajax` (maybe make a custom build of jQuery) or a promise-like library like reqwest [2], rather than fighting with fetch.
[1] https://github.com/stefanpenner/es6-promise/issues/70#issuec...
[2] https://github.com/ded/reqwest
[3] http://requirebin.com/?gist=8f13d5147c1c252ab1691115bfa8b7c5
I think that's the thing. Unless you write your own utility library or use someone else's it's often more verbose, more fragile and less intuitive.
And if you do use a library, probably one for each feature, why is it better to have a handful of dependencies than one?
In a year I will be able to reach out to the community for support on jQuery. Will I for all of these small tools?
Cross browser compatibility and legacy IE support.