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.
Lmao I’m a tech intern and I recently made a post asking recruiters how I should interact with them to help me find internships/jobs in the tech field. One person said in their response that they hate seeing jQuery on resumes and if you don’t have React/Vue/Angular then you p much don’t know JS. I think I get their point but I strongly disagree with that statement about not knowing JS…
You know that thing where you make something really clean and really neat, but then a customer calls in saying it doesn't work, and it turns out they use safari and why would you have nice things?
Well think of that, but with all browsers. The main thing jquery did was give you a lot of functions that worked cross-browser, which weren't a guarantee
For me a long time ago, it helped solve the issues with cross browser comparability with the older IE versions. I think that plus the Ajax piece just ended up making it stick, easier to understand syntax for newer developers as well.
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+.
The biggest problem they initially solved was cross-browser support.
When jQuery was first released, the most popular browser was Microsoft Internet Explorer. The problem is, MS IE had terrible standards support.
Some standard functions were implemented incorrectly, e.g. they required different parameters, or they didn't return the values you expected. And some standard APIs weren't implemented at all. IE also had its own non-standard API to do some tasks, like the document.all object to access elements by their ID.
This was a big source of pain for developers, because if you developed apps following the standards, they broke on IE, but if you use the IE proprietary APIs, the apps then broke in other browsers. You could spend hours fixing these compatibility issues.
With jQuery, you could use a single API and it would work in every browser. Internally the library would find out in which browser it's running and would call the right methods to do the task.
BTW, IE had bad standards support on purpose, it was a tactic to maintain their market share.
As cross-browser support was difficult, some dev teams chose ignore cross-browser support and make the websites work on IE only. Sometimes, it was just a bad practice by those teams, but often they did it because they had the pressure from management to ship websites fast.
If a user visited one of those websites with an alternative browser, it would break, obviously. The thing is, is the user wasn't tech-savvy, they would incorrectly blame the browser, and they would switch back to IE.
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.