Feeds

jQuery 2.0 kicks old Internet Explorer versions to the curb

Leaner, faster code base for 'the modern web'

Combat fraud and increase customer satisfaction

Popular JavaScript library jQuery has reached version 2.0, and as expected, the new release drops support for older versions of Internet Explorer, including IE 6, 7, and 8.

Many developers have come to rely on jQuery to ease some of the headaches of developing sophisticated, cross-browser web UIs, particularly where it comes to supporting the quirks of older browsers – IE being the worst of the lot.

By some counts, jQuery is now used on more than 50 per cent of all websites, making it much more popular than competing frameworks such as Dojo, MooTools, Prototype, or the YUI Library.

Beginning with jQuery 2.0, however, developers who want to support the oldest versions of IE will also need to use an older version of the jQuery library.

"jQuery 2.0 is intended for the modern web; we've got jQuery 1.x to handle older browsers and fully expect to support it for several more years," the project's Dave Methvin said in release notes posted to the jQuery Foundation website on Thursday.

By removing the code required to support these legacy browsers, Methvin said, the project's developers have managed to reduce the size of the library's code base by 12 per cent while improving its performance at the same time.

Methvin said the library is also now more suitable for applications where compatibility with older browsers isn't necessary, and where the code needed for old-IE compatibility can often cause problems of its own.

Examples of such applications include Chrome extensions and apps, Windows Store apps for Windows 8, node.js applications, and web standards–based mobile apps created using tools like PhoneGap/Cordova.

In fact, Methvin said, the jQuery developers might have liked to have removed more code that would have improved performance further, but doing so would have broken compatibility with browsers on mobile devices running Android 2.x "Gingerbread."

"Android/WebKit 2.x browsers are now the weakest link," Methvin wrote. "We're carefully watching Android 2.x market share to determine when we can cross it off the support list, and don't expect it to take very long."

Web developers who still need to support IE 6, 7, or 8 should continue to use the 1.x branch of jQuery, which is still being maintained. That branch is currently on version 1.9 and will be upgraded to 1.10 within a few months.

The jQuery 2.0 library is API-compatible with jQuery 1.9, and the project's developers say they plan to maintain feature parity between the two branches – so 1.10 will correspond to 2.0, 1.11 will correspond to 2.1, and so on.

Because of this, it's probably a good idea to start upgrading existing jQuery sites to version 1.9 now, to avoid additional pain later. The project's maintainers have posted an upgrade guide to help developers complete the transition, in addition to a jQuery Migrate plugin that can identify code that uses deprecated APIs and features.

Developers can download any of jQuery 1.x, jQuery 2.x, or the jQuery Migrate plugin from the project's official website. ®

High performance access to file storage

More from The Register

next story
This time it's 'Personal': new Office 365 sub covers just two devices
Redmond also brings Office into Google's back yard
Batten down the hatches, Ubuntu 14.04 LTS due in TWO DAYS
Admins dab straining server brows in advance of Trusty Tahr's long-term support landing
Microsoft lobs pre-release Windows Phone 8.1 at devs who dare
App makers can load it before anyone else, but if they do they're stuck with it
Half of Twitter's 'active users' are SILENT STALKERS
Nearly 50% have NEVER tweeted a word
Oh no, Joe: WinPhone users already griping over 8.1 mega-update
Hang on. Which bit of Developer Preview don't you understand?
Internet-of-stuff startup dumps NoSQL for ... SQL?
NoSQL taste great at first but lacks proper nutrients, says startup cloud whiz
Windows 8.1, which you probably haven't upgraded to yet, ALREADY OBSOLETE
Pre-Update versions of new Windows version will no longer support patches
Microsoft TIER SMEAR changes app prices whether devs ask or not
Some go up, some go down, Redmond goes silent
Ditch the sync, paddle in the Streem: Upstart offers syncless sharing
Upload, delete and carry on sharing afterwards?
prev story

Whitepapers

Designing a defence for mobile apps
In this whitepaper learn the various considerations for defending mobile applications; from the mobile application architecture itself to the myriad testing technologies needed to properly assess mobile applications risk.
3 Big data security analytics techniques
Applying these Big Data security analytics techniques can help you make your business safer by detecting attacks early, before significant damage is done.
Five 3D headsets to be won!
We were so impressed by the Durovis Dive headset we’ve asked the company to give some away to Reg readers.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Securing web applications made simple and scalable
In this whitepaper learn how automated security testing can provide a simple and scalable way to protect your web applications.