r/learnjavascript • • Oct 01 '21

jQuery, the greatest JavaScript library of all time, appears to have peaked in usage.

Post image
275 Upvotes

81 comments sorted by

View all comments

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.

2

u/[deleted] Oct 02 '21

jQuery solved a problem

Genuine question, what problem did jQuery solve? I'm guessing it's making HTML elements easier to access, right?

2

u/crazedizzled Oct 02 '21

Most importantly, it solved cross browser inconsistencies.

Beyond that, it introduced a way to access and manipulate the dom in a fairly clean way. Back then it was very convoluted to do those things in vanilla js.

It also brought a good way to handle AJAX, which was again very convoluted in vanilla js.

Pretty much every problem that jQuery solved is now available in vanilla js in ES6+.