Why I'm still using jQuery in 2019
BRANK

Many people advocate “just use vanilla JavaScript, you don’t need jQuery”. Well, I don’t need many things that are nontheless nice to have. I don’t need jQuery, but it sure is nice!Pages like You might not need jQuery try to sell the idea that it’s easy to ditch jQuery, but the very first example is a good reason to use jQuery: one line of trivial jQuery code gets replaced with 10 lines of vanilla JS code!Much of the JavaScript API – especially the DOM API – offends my sense of aesthetics, which is just a nice way of saying that I think it sucks. el.insertAdjacentElement('afterend', other) undoubtedly works, but $(el).after(other) is actually palatable. While I have never been a huge fan of how the $() function looks, it’s massively better than what the DOM gives usQuick: how do you get an element’s sibling? Is it nextSibling or nextElementSibling? What’s the difference? Which browsers support which? While you’re busy trying to remember and checking MDN just to be sure I’…

arp242.net
Related Topics: jQuery JavaScript Vue.js