Is jQuery dying?
Some years ago jQuery was a solid solution in developing cross-browser applications and providing some fancy DOM manipulations. Things have changed a lot since then and vanilla JS has been evolving steadily. Same story with browsers since Internet Explorer mostly has turned the page too. I know jQuery dev team is moving towards their 3rd major release but i have to admit that i have been using the library even less in my projects.
The truth is that the nature of applications has changed. My views are connected with my data so i do not need anymore plain DOM manipulations. Now these are part of the whole UI functionality and my data flow and not the result of a key stroke. So i need sth stronger than a listener to a click event that's why i use frameworks like AngularJS and lately VueJS and PolymerJS.
New ECMAScript versions bring steadily even more goodies for us. New apis like fetch()
shall help us run AJAX requests lightning fast. Many people still use jQuery because of the $.ajax()
function but since a native alternative will gain ground i guess this shall end.
Vanilla js offers tons of neat selectors like document.querySelector('myID');
or document.getElementById('myID');
so there is no need for $('#myID');
etc. I know many developers are quite experienced in using jQuery selectors and tend to ignore the vanilla js ways. In fact there are too many developers who feel that they would step outside of their comfort zone if they were asked to use the vanilla js alternatives. The truth is that most of the times vanilla js selectors cover our needs.
As time goes by, the most popular JS frameworks are opting to use vanilla JS instead of JQuery. In fact, the only popular JS frameworks still using JQuery are EmberJS and BackboneJS but the flow is moving away from jQuery.
So this is the question: Is jQuery dying?