Learning by doing
Trainers with practical experience
Detailed course material
Clear content description
Tailormade content possible
Training that proceeds
In the early days of Web development, there were some problems that made coding difficult. First, there was very little compatibility between browsers. Microsoft went off in one direction, and other browser manufacturers went in others. In order to write code that could be called in response to a button click, you had to write several versions for different browsers. That was the first problem.
Additionally, the Web standards group (W3C) took note of the way jQuery allows you to drill down into your elements, using a method that essentially matches CSS’s way of naming elements. As such, they added some standard methods for accessing your elements using these same CSS selectors.
And now we’re at a point where many of the missing pieces (and additional features) jQuery filled in are present in browsers. So do you need to learn jQuery anymore?
Let’s look to some of the experts to get their take.
For example, Motto provides this code in jQuery:
var i = $(“.myclass”);
This searches for all elements on the page that have class name myclass. Now here’s a bit of code without jQuery:
var i = document.querySelectorAll(“.myclass”);
This does the same thing, using a function (querySelectorAll) that’s built into the newer browsers.
If you dig further, you’ll find the same conclusion on other blogs: People are realizing they don’t necessarily need jQuery. Indeed, in my own development work, I’ve noticed over the past year that I’m relying on jQuery less and less.
But before we move on, let’s look at jQuery’s official blog. Here, we see that the jQuery developers have stripped out the code needed for older browsers, resulting in a separate version of jQuery that targets only modern browsers. Because it doesn’t need nearly as much browser-specific code, this modern jQuery library is much smaller in code size than previous versions. To me, that sounds like even more of a justification to abandon jQuery, even if the platform’s developers don’t want us to stop using it.