4 ms·
I am sorry, this just does not make sense. It claims that because there is direct access to all the DOM API, you really don't need jQuery, but then it gives ex
by jorgeleo 10y ago
I am sorry, this just does not make sense.
It claims that because there is direct access to all the DOM API, you really don't need jQuery, but then it gives examples on how simple jQuery calls maps to different, multimethod calls to the DOM API. Those examples show how jQuery provide a nice abstraction on top of the DOM.
This article is like saying, we don't need high-level languages because we can all learn assembler.
- dullgiulio 10y agoExactly. As a person who doesn not usually write Javascript, this project looks like an involutary advertisement for jQuery. Half of the native solutions have bugs or no IE support. All are three or more times more tendious than jQuery. The adage in the other comments seem "but jQuery is a big dependency." Did we already forget the left_pad npm debacle? jQuery didn't break then.
- throwanem 10y agoIf you're doing a bunch of these things, jQuery makes sense. If you're doing one of them, just write it out and move on. Don't pull in a multi-kilobyte dependency for one thing that takes two minutes to write. What relevance has left-pad here?
- minikomi 10y agoA lot of the animation examples are actually quite different in subtle ways.. Eg. the fade out example using opacity with CSS animations - the element still remains in the DOM. https://jsfiddle.net/hbLebx2d/1/ https://jsfiddle.net/hbLebx2d/1/ Try quickly clicking the "Toggle" button too.
- lucideer 10y agoI think people are reading too much into the intent of this. "You Don't Need jQuery" is in no way the same as saying "Don't Use jQuery". jQuery is a convenient abstraction on more verbose DOM APIs. Using it makes development quicker and easier. Here is an educational article demonstrating what those DOM APIs look like to many who may have opted to take the quicker & easier route of learning jQuery without learning DOM.