Hacker News new | ask | show | jobs
by JuDue 4863 days ago
Wish people would stop depending on jQuery.

Old browsers can default to a normal form input.

2 comments

You're not the first criticising this about my library. I used adapters in another lib of mine (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).

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.

Why do you wish people would stop depending on jQ? I'm just curious.
For 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.

I think a combination of something like TinyXHR (https://gist.github.com/shimondoodkin/4706967) and querySelectorAll would suffice for many simple use-cases on modern browsers.
Not everyone uses jQuery; I don't. This should be titled 'jQuery library...'