3 ms·
This page gives a pretty good overview of why jQuery is still relevant: http://youmightnotneedjquery.com/ http://youmightnotneedjquery.com/ Requests have gotte
by mschuetz 5y ago
This page gives a pretty good overview of why jQuery is still relevant: http://youmightnotneedjquery.com/ http://youmightnotneedjquery.com/
Requests have gotten better with "fetch", but unfortunately, the "modern" DOM API is quite bad in some parts, making lots of stuff unnecessarily verbose. On top of that, it's really odd that the DOM API is not compatible with for-of loops, which could have been a selling point.
- lobstrosity420 5y ago>it's really odd that the DOM API is not compatible with for-of loops, which could have been a selling point. I'm not sure what you mean by that? querySelectorAll returns an iterable. Also, your link is outdated. It doesn't include the fetch API which has enjoyed wide support for quite a while now.
- mschuetz 5y ago> I'm not sure what you mean by that? querySelectorAll returns an iterable. Apparently my knowledge is outdated. Last time I tried to switch from jQuery to vanilla JS, the results of document.getElementsByTagName and others were not iterable with for-of.