7 ms·
Wish people would stop depending on jQuery. Old browsers can default to a normal form input.
by JuDue 14y ago
Wish people would stop depending on jQuery.
Old browsers can default to a normal form input.
- javascripter9 14y agoWhy do you wish people would stop depending on jQ? I'm just curious.
- jblock 14y agoFor one, it's heavy compared to some very simple JS and a good portion of the time you don't need the entirety of the library. That said, it does abstract much of the crap that goes along with XMLHttpRequests and all the cross-browser idiosyncrasies that go along with it. I'd say at this point it's a matter of personal preference and performance requirements.
- drgath 14y agoI think a combination of something like TinyXHR (https://gist.github.com/shimondoodkin/4706967 https://gist.github.com/shimondoodkin/4706967) and querySelectorAll would suffice for many simple use-cases on modern browsers.
- emehrkay 14y agoNot everyone uses jQuery; I don't. This should be titled 'jQuery library...'
- enyo 14y agoYou're not the first criticising this about my library. I used adapters in another lib of mine (http://www.opentip.org http://www.opentip.org) and it worked great, but the work involved in testing all browsers is not comparable to just using jQuery (especially when working with events). But it is definitely on my todo list (https://github.com/enyo/dropzone/issues/39 https://github.com/enyo/dropzone/issues/39). EDIT: PS: I also chose jQuery over any other lib just because it's the most wide spread. Personally I have worked with Ender, Component, RequireJS and don't use jQuery in all my projects.