Why Outdated jQuery Is Still the Dominant JavaScript Library – InApps is an article on the topic of Software Development. Many of you are most interested in today !! Today, let’s InApps.net learn Why Outdated jQuery Is Still the Dominant JavaScript Library – InApps in today’s post!

About jQuery

jQuery is one of the longest-running and most influential JavaScript libraries on the web. A staggering 78% of the top 1 million websites use jQuery in some way, according to BuiltWith. As for the most talked-about JavaScript library today, React, it’s used by a relatively paltry 14%.

jQuery was launched way back in 2006 when the term “Ajax” was at its peak. Ajax (Asynchronous JavaScript and XML) is now long gone from the developer vernacular, along with other JavaScript technologies of that early Web 2.0 era. But jQuery has stood the test of time. Indeed, up till very recently, it was still growing year-over-year. To find out the latest on this enduring technology, I spoke to one of the developers who continues to maintain jQuery. And he is Michał Gołębiowski-Owczarek.

The WordPress Factor

Despite its enormous usage, developers today may not even be aware that they’re using jQuery. That’s because it’s embedded in a number of large projects — most notably, the WordPress platform. Many WordPress themes and plugins rely on jQuery. The jQuery library is also a foundational layer of some of today’s most popular JavaScript frameworks and toolkits, like AngularJS and Bootstrap (version 4.0 and below).

“A lot of the surprise about jQuery usage stats comes from living in a bubble,” Gołębiowski-Owczarek told me. “Most websites are not complex Web apps needing a sophisticated framework, [they are] mostly static sites with some dynamic behaviors — often written using WordPress. jQuery is still very popular there; it works and it’s simple, so people don’t feel the need to stop using it.”

Read More:   JavaScript Dominance Not Assured – InApps Technology 2022

jQuery will continue to be a part of WordPress for some time to come, if for no other reason than that it would be difficult to remove it without breaking backward compatibility. But I asked Gołębiowski-Owczarek if WordPress is likely to eventually move away from its reliance on jQuery.

“I think it’s partially already happening,” he replied. “The Gutenberg editor that WordPress created doesn’t depend on jQuery. So at least on the admin side, they have variations that are not dependent on it.”

He expects that over time WordPress will move onto newer technologies, but that it will be a gradual process.

Among the WordPress developer community, the “performance impact of using jQuery in WordPress themes” is a hot topic. There’s even a reference website called “You might not need jQuery” that offers tips on how to replace jQuery in your WordPress application. Its reasoning includes the fact that with modern browsers, “you might not need anything more than what the browser ships with.”

However, there’s another document that warns that “developers should be aware that ditching libraries, like jQuery, can easily require large amounts of research on their end to avoid bugs (even in modern browsers).” So despite the fact that “Is jQuery outdated and dead?” articles have been circulating for several years, it’s very much still alive in the WordPress ecosystem at least. Developers are being encouraged to replace it but at their own risk.

jQuery’s Role

So how did jQuery come to be so embedded in today’s web? A little history is needed to answer that.

When jQuery creator John Resig released it in January 2006, at BarCampNYC, he wrote that “this code revolutionizes the way you can get Javascript to interact with HTML.” He was primarily referring to the fact that jQuery made it easier for developers to work with the DOM (Document Object Model). Remember, this was before Google Chrome had come along to shake things up, so it was an era of little browser innovation. Microsoft’s Internet Explorer had 85-90% of the browser market, with IE6 the dominant version. Even at the time, IE6 had a reputation as a historically bad browser.

Read More:   The Force of Developer Experience and Workflow – InApps Technology 2022

Simon Willison, who Resig listed as one of his influences when creating jQuery, noted some of the problems JavaScript developers had with browsers in a June 2006 post:

“There are a number of problems in JavaScript (most of them originating with browser incompatibilities) that any moderately complex application will need to deal with — things like normalized event handling, DOM node selection, sane animation or drag and drop.”

This was the kind of thing Resig had set out to solve, although jQuery itself wasn’t mentioned in Willison’s post. The “big four” leading JavaScript libraries at that time were Dojo, MochiKit, Prototype/Scriptaculous, and the Yahoo UI Library. In a blog post about a year later, Willison admitted that he’d initially thought jQuery was “a cute hack,” but now recognized it as “an exceptionally clever piece of engineering.”

So basically, jQuery had been invented to help developers deal with the browser inadequacies of the time.

Is jQuery Outdated Now?

What is jQuery’s role in today’s web, when the leading browsers (even Safari!) are much more compliant with web standards? Also, the JavaScript standard itself has significantly improved over the past decade, especially after the release of ECMAScript 6 in 2015.

As noted, React has become the most talked-about JavaScript library of today. Modern frameworks, notably Next.js, have been founded on React. Other popular frameworks, such as Angular (the successor to AngularJS) have their own ecosystem of libraries. Today’s JavaScript frameworks also allow you to break the UI into components, making it easier to scale up an application.

“Those frameworks provide abstractions for easier synchronization between the data and the view,” said Gołębiowski-Owczarek about the likes of Next.js and Angular. “So their users no longer need to modify/access the DOM directly so often and are often discouraged from doing that. In such an environment, using jQuery doesn’t make much sense. But that’s just a small part of the whole web ecosystem.”

Read More:   WebAssembly Could Be the Key for Cloud Native Extensibility – InApps 2022

However, Gołębiowski-Owczarek acknowledged that jQuery may have performance issues for large-scale applications.

“We’ve improved jQuery performance a lot over the years,” he said. “But there are some obstacles that are hard to deal with. One of them is that to not conflict with the browser, jQuery doesn’t modify native prototypes — as some of the other libraries did (often later causing issues with standardization of conflicting APIs) — but it instead wraps DOM nodes with jQuery wrapper objects. Each operation on such a wrapper creates a new one. In most cases, it doesn’t matter, but for very complex applications with lots of DOM manipulation this can sometimes become an issue.”

Is jQuery outdated: Final Conclusion

It’s clear that jQuery is no longer an optimal way for developers to add JavaScript functionality to their website or application, especially if it needs to scale. The fact that GitHub contributions to jQuery are well down in their peak years (2006 till around 2013) also signifies that not much more can be done to make jQuery more compatible with our current web.

But that’s ok. jQuery has lasted a lot longer than most developers would’ve expected, given it came out near the beginning of Web 2.0. It still does the job it set out to do. After all, and it remains a convenient JavaScript library for developers to reach for.

In any case, jQuery will be embedded in tens of millions of WordPress sites for years to come. It may even outlast React.

Feature image via Pexels.

 

Rate this post
As a Senior Tech Enthusiast, I bring a decade of experience to the realm of tech writing, blending deep industry knowledge with a passion for storytelling. With expertise in software development to emerging tech trends like AI and IoT—my articles not only inform but also inspire. My journey in tech writing has been marked by a commitment to accuracy, clarity, and engaging storytelling, making me a trusted voice in the tech community.

Let’s create the next big thing together!

Coming together is a beginning. Keeping together is progress. Working together is success.

Let’s talk

Get a custom Proposal

Please fill in your information and your need to get a suitable solution.

    You need to enter your email to download

      Success. Downloading...