I’ve been thinking a lot about jQuery lately; on top of that, dedicating an entire blog post to Jquery in 2019 seems odd. That is especially since comparing to the big 3 that is ReactJs, Angular, VueJs, Jquery is an afterthought. So, why am I musing about Jquery all of the sudden? Browsing through the net, I ran into a very significant Github pull request regarding Bootstrap.
When I first ran into this Bootstrap pull request, it was still undergoing review. Shortly after, the pull request has been merged into the master branch as of Feb 20th, 2019. To give it a perspective, the first commit happened Aug 19, 2017. What’s new with the newest version of Bootstrap? Well… it’s really an addition by subtraction (which happens to be subtraction of jQuery).
I started this blog post with initial goal of my opinion on jQuery but later expanded it to examining its history and predict its future.
Timed with Microsoft and Nokia’s public support of jQuery in 2008, the library has since skyrocketed to popularity, peaking at early 2010’s.
While, not as popular as before, jQuery still remains one of the most popular library today. Currently, the library is maintained by group of volunteers at jQuery Foundation.
Web community hasn’t been kind to jQuery in recent years. With Github’s removal of jQuery in September of 2018 and youmightnotneedjquery entering my web-developer radar, the industry is fast separating itself from it. I hardly even notice open job positions demanding jQuery experience.
However, my introduction to jQuery was during the beginning of its downward trend due to inception of Angular 1 and ReactJs. By the time I have fully moved on to Angular, ReactJs and VueJs, I would try to avoid importing jQuery however I can. After all, no self-respecting developer wants to have two combinations of library/framework for a single project.
Therefore, I consider jQuery-free Bootstrap a net-positive change.
While I’m not on board anti-jQuery bandwagon and think that the level of effort of removing from Bootstrap outweighs the impact, trimming out what’s unnecessary to optimize network request is always worth exploration.
Short answer is, it’s almost impossible for jQuery to return to its prominence. Of course, jQuery will still be around for legacy support. However, until jQuery reinvents itself, web developers’ voice of displeasure of “excessive bloat” is likely to continue.
One library on top of my head would be this little gem called RE:DOM. Sized at 2kb, with modular features and component based architecture, this library possesses the idea of what the modern jQuery should be. (For reference, jQuery’s file size is 30kb minified). It would be nice for this neat little library to gain some following for small web projects. You owe it to yourself to at least check it out.
My run in with the pull-request for jQuery-free Bootstrap gave me a lot to think about, from my first experience of trying to remember how to write the
$(document).ready() to a major project we accomplished for one of the biggest corporation in the world. Having finished at a high note with jQuery and with Bootstrap finally making the move away from jQuery, I feel this is the time to say goodbye.