News for hackers. Stuff that matters.
Re:You Don't Need JQuery by Khao on Tuesday December 16, 2014 @02:48PM (#8758960)
So when those new native api functions arrive, jQuery will start using them and gain some performance boost (using native vs. custom js code) while at the same time remaining backwards compatible (by doing feature detection). No one wants to write their own feature detection code so this whole page about using native apis is instead of jQuery is ridiculous.

If the point of that website was to educate people on the apis that jQuery calls under the hood, it chose a really poor name.

Re:You Don't Need JQuery by aplummer on Tuesday December 16, 2014 @06:45PM (#8760297)
This a thousand times, I know with $.trim it will use trim() for good browsers and then whatever hack effort was necessary for IE8. It would be devastating to have to write this manually.
Re:You Don't Need JQuery by kyllo on Tuesday December 16, 2014 @03:54PM (#8759408)
Exactly. "No one wants to write their own feature detection code" is the whole point of jQuery.
Re:You Don't Need JQuery by rip747 on Tuesday December 16, 2014 @04:45PM (#8759745)
You hit the nail on the head.
Re:You Don't Need JQuery by malandrew on Wednesday December 17, 2014 @01:39AM (#8761338)
Or you could use the class list polyfill.
Re:You Don't Need JQuery by organsnyder on Wednesday December 17, 2014 @12:19PM (#8763118)
If that's all you need, then that would be fine. However, for most projects you end up needing many other such polyfills, to the point that you might as well use one library—jQuery—to provide them all (plus a lot of other functionality).