What's amazing is that I have not worked on jQuery in 6 or so years of web development, across multiple companies yet its still this popular in terms of use.
jQuery solved a problem, and has since pretty much been replaced (for better or worse) in the popular domain. I wonder how long the likes of React, Vue and Angular will stick around beyond their expiry date.
The adoption of a technology lasts far, far longer than its popularity.
Jquery has largely been replaced by ES6. I actively go out of my way to avoid jQuery whenever I can. We don't even use it in our WP starter theme anymore, outside of Bootstrap 4's requirement for it.
Because with new ES6+ methods you can do many things simply in vanilla JS that previously required jQuery if you didn’t want to write a lot of verbose lines.
Using vanilla JS before document.querySelectorAll() came about without JQ was a pain.
I get what you mean but you're talking about additions to the browser API that were introduced as a response to jQuery + normalisation of the browser API as browsers became an application platform. Nothing to do with ES. The two core jQuery APIs were the selector engine and AJAX. Browsers added querySelector[All] and fetch (+ a load more jQuery-like stuff) + non-evergreen browsers are now uncommon, so the browser APIs now cover most jQuery use-cases.
IMO, and I'm stretching here, the only thing in ES, in JS, that's really made a difference is modules (one of the issues with jQuery is its non-modular architecture), and that's tangential, it's not directly related to functionality
querySelectorAll was available in Browsers around 2009, ES6 came out in 2015. While I understand that you still needed jQuery back then to support older browsers, it still had nothing to do with ES6.
24
u/CardinalHijack Oct 02 '21
What's amazing is that I have not worked on jQuery in 6 or so years of web development, across multiple companies yet its still this popular in terms of use.
jQuery solved a problem, and has since pretty much been replaced (for better or worse) in the popular domain. I wonder how long the likes of React, Vue and Angular will stick around beyond their expiry date.
The adoption of a technology lasts far, far longer than its popularity.