Paul Krill
Editor at Large

jQuery 4.0 trims browser support, removes APIs

news
Feb 7, 20242 mins

Long-awaited update to the venerable JavaScript library abandons old browsers including Internet Explorer 10 and removes functions you should no longer use.

jQuery 4.0, now in a beta state, drops support for a number of older browsers and removes previously deprecated APIs. The new release also introduces support for Trusted Types.

With jQuery 4.0, support is dropped for Internet Explorer versions 10 and older, Edge Legacy, Firefox versions before release 65, and iOS versions before release 11. Plans call for removal of support for Internet Explorer 11 in jQuery 5.0. Also with jQuery 4.0, native behavior is no longer overridden. That means all browsers except Internet Explorer will follow the current World Wide Web Consortium (W3C) specification.

APIs removed in jQuery 4.0 include 13 previously deprecated APIs, which either were meant to be internal or that now have native equivalents in all supported browsers. Also removed are the jQuery prototype Array methods push, sort, and splice, which also were always meant to be for internal use only. These methods have been switched to equivalent Array functions.

jQuery 4.0 adds support for Trusted Types, ensuring that HTML wrapped in TrustedHTML can be used as input to jQuery methods for manipulation in a way that does not violated the require-trusted-types-for Content Security Policy. 

And the slim build has gotten smaller in jQuery 4.0, with the removal of defaults and callbacks.

The jQuery 4.0 beta was unveiled February 6. The full changelog for the release can be found on GitHub. Files for the jQuery 4.0 beta can be accessed from the jQuery CDN or linked to directly:

Developers also can get the jQuery 4.0 beta from NPM:

npm install jquery@4.0.0-beta code

First released in 2006, jQuery is positioned to be a small and fast library. Capabilities such as HTML document traversal are supported along with manipulation, animation, and event handling. 

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author