We weren’t here to report it in real-time, but on February 6, jQuery Core Team Lead Timmy Willison announced that jQuery 4.0.0 is now available in beta.
jQuery 4.0.0 has been in the works for a long time, but it is now ready for a beta release! There’s a lot to cover, and the team is excited to see it released. We’ve got bug fixes, performance improvements, and some breaking changes.
We’ve trimmed legacy code, removed some previously-deprecated APIs, removed some internal-only parameters to public functions that were never documented, and dropped support for some “magic” behaviors that were overly complicated.
The post includes an overview of the changes, starting with the highlight: dropping support for IE10 and older. The team planned to part with IE11 after Microsoft ended support in 2022 but eventually decided to push this change to v5 to avoid any more blockers to the v4 release.
The upcoming release uses ES modules and switches from RequireJS to Rollup for packaging. It also removes 13 deprecated functions that “were either always meant to be internal or ones that now have native equivalents in all supported browsers.”
78 Million Websites Use jQuery
Adherence to modern browser behavior and specs is a common thread in the announcement post. Indeed, browsers have come a long way since January 2006, when jQuery was launched, Internet Explorer had a 90% market share, and front-end development was a constant struggle.
Today, with 99.84% browser support for ES6, a slew of well-supported Web APIs, and robust upgrades to CSS—when we can run a full-blown WordPress instance in the browser using WebAssembly—do we still need a 1.25 MB DOM manipulation library?
Or, in the words of an opinionated Redditor:
Look, jQuery was incredible and it changed JS in incredible ways. It made the JS developer experience incredible because it was so inventive. And the JS community and TC39 implemented so many things that jQ did incredible. It was one of the goals of jQ – set standards and improve the JS language. And it worked. And it’s no longer needed.
Judging by online statistics, the answer is an unequivocal “YES!”. jQuery might be the uncool kid in the front-end neighborhood, but its market share dwarfs the hipper frameworks.
Based on NPM, jQuery 3.7.1, released in August 2023, boasts over 9 million weekly downloads and has more than 20k dependent packages.
BuiltWith indicates that over 78 million websites use jQuery, while W3Techs reports that “jQuery is used by 94.4% of all the websites whose JavaScript library we know. This is 77.1% of all websites.”
A Legacy Dependency
Among the chief reasons for jQuery’s relentless popularity is being instrumental to the ecosystem. Namely, it’s bundled in WordPress Core and is part of numerous themes and plugins.
WordPress’ adoption of React-based Gutenberg has lowered its dependency on jQuery. During a Developer Hours session hosted a week after Willison’s announcement, titled JavaScript for modern WordPress development, Automattic’s developer advocates Ryan Welcher and Nick Diego spent more than an hour diving into JS tools and techniques to build blocks and editor extensions; they didn’t once mention jQuery.
In a post published in October 2021 on the Make Themes blog, core contributor Felix Arntz urged theme developers to move away from jQuery to improve performance.
Still, a TRAC ticket opened on the day of Willison’s announcement reported the news and enquired, “Is this something that wp core will be looking to implement?”. Andrew Ozz, Lead Developer at Automattic, replied, “Of course :)”
With a 43% share of the CMS market, WordPress could be the serum of jQuery’s longevity.