On 10th Anniversary of jQuery, jQuery 3.0 Beta Released

Celebrating 10th anniversary,  popular JavaScript library jQuery has gone into a beta release stage with jQuery 3.0 version on 14th January 2016.

Among key features in version 3.0 is an updating of .data() implementation to more closely match the HTML5 dataset specification. “All keys are now converted from kebab-case to camelCase, regardless of access method, and digits no longer participate in the conversion,” said jQuery Core team member Timmy Willison in a blog post. JQuery.Deferred objects, meanwhile, have been updated to be compatible with the Promises/A+ and ECMAScript 2015 promises. This required changes to the .then() method.

Also Read : Soon Twitter will have 10,000-Character Tweets

Also, there have been “massive speedups” for some jQuery custom selectors. “Thanks to some detective work by Paul Irish at Google, we identified some cases where we could skip a bunch of extra work when custom selectors like :visible are used many times in the same document. That particular case is up to 17 times faster now,” said Willison.

Another change involves .show and .hide methods. Developers with jQuery 3.0 alpha had experimented with treating these methods like an inline-display-none-remover (.show()) and inline-display-none-adder (.hide()). “This had the advantage of simplifying these methods greatly and improving performance — it required much fewer calculations. However, this proved to be problematic for our users,” Willison said. “Removing inline display:none did not always show the element (if the element was hidden from the stylesheet, for example), and that is far too common. We realized we couldn’t provide a simple way for jQuery plug-ins, especially, to ensure that an element was shown.” Thusly, jQuery developers have reverted that change; changes that have been kept for show and hide methods should have less impact on code, he said.

Also Read : China Reportedly Starts Testing 5G Technology, will Commercialise it by 2020

A jQuery Migrate 3.0 plug-in is planned, to help identify compatibility issues in code. Developers anticipate some breaking changes with the upgrade, and jQuery’s builders dropped support for jQuery Compat to offer compatibility with more browsers but possibly at the expense of file size and performance. “On January 12, Microsoft dropped support for IE8, IE9, and IE10. We’re not going to go that far just yet, but we are dropping support for IE8. And with IE8, so goes jQuery Compat, gone before we even released a final version. There will only be one jQuery from now on,” Willison said.

Also Read : Hike Adds Quora And WordPress Founders as Investors and Advisors to Grow its User Base

Avinash A
Avinash A
Meet Avinash, a tech editor with a Master's in Computer Science and a passion for futuristic tech, AI, and Machine Learning. Known for making complex tech easy to understand, he's a respected voice in leading tech publications and podcasts. When he's not deciphering the latest AI trends, Avinash indulges in building robots and dreaming up the next big tech breakthrough.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from this stream