New jQuery Releases
Written by Alex Armstrong   
Friday, 18 January 2013

The final versions of jQuery 1.9 and jQuery Migrate 1.0 and the beta of jQuery 2.0 have been released. So has the jQuery Plugin Registry, a new website to serve as a central repository.

The key feature of jQuery 1.9 and 2.0 is that they are removing a lot of old code to produce a streamlined API that will result in a cleaner code base for future development work. The biggest impact will be on older versions of Internet Explorer.

While jQuery 1.9 will support IE 6, 7 and 8, jQuery 2.0 will only support IE 9 or later.  Although the two versions share the same API, the jQuery 2.0 beta is ten per cent smaller than the 1.9 release and the development team believes it can shrink it further, stating in the blog post:

There is more refactoring possible now that we can consistently depend on modern JavaScript, CSS, HTML, and DOM features being there.

To cope with problems that might arise from removed functions, jQuery Migrate is a plug-in designed to help with the migration of code to jQuery 1.9 and later. It not only provides warnings when deprecated functionality is in use, but can also restore APIs to allow production code to continue running.

Apart from the streamlined API the main new features in jQuery 1.9 are:

New .css() multi-property getter: Now you can pass .css() an array of CSS property names and it will return an object with the current values of all those CSS properties:
var dims = $("#box").css([ "width",
                 "height", "backgroundColor"]);
// { width: "10px", height: "20px",
              backgroundColor: "#D00DAD" }

Enhanced cross-browser CSS3 support: jQuery 1.9 now supports the following CSS3 selectors across all browsers, all the way back to IE6: nth-last-child, :nth-of-type, :nth-last-of-type, :first-of-type, :last-of-type, :only-of-type, :target, :root, and :lang.

New .finish() method:  to immediately complete all the animations queued on an element. 

Source map support: You can now run the minified version of jQuery but use source maps for debugging. This can be extremely valuable for tracking down problems on a production web site.

 

 

To further help developers working with jQuery the new jQuery Plugin Registry is intended to reduce the fragmentation and distribution problems that can be obstacles for plugin developers and consumers. The new website is quickly being populated with plugins and the details of how to upload plugins is also explained in the jQuery blog.

 

More Information

JQuery blog post - jQuery 1.9 final, jQuery 2.0 beta, Migrate

jQuery downloads page

Download jQery 2.0 beta

Download jQuery Migrate 1.0

JQuery Blog Announcing the jQuery Plugin Registry

jQuery Plugin Registry

Related Articles

jQuery 1.7 Introduces On/Off Switch

Query 1.6 released with better attributes

jQuery, Promises & Deferred

jQuery Promises, Deferred & WebWorkers

jQuery, jQuery UI, and jQuery Mobile (book review)

Getting Started With jQuery - CSS Selectors

Getting Started With jQuery - The DOM

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

square

 



 

Comments




or email your comment to: comments@i-programmer.info

 

Banner


Raspberry Pi Powered PDP-11
25/04/2021

My attention was attracted this week to a vintage computer kit building experience. Retro Viator gave his account of the PiDP-11/70 from Obsolescence Guaranteed, which is a small-scale replica of Dec' [ ... ]



Learn Kotlin in 134 Lessons
23/04/2021

Kotlin For Beginners is a free 9-hours long course covering the basics of Kotlin by Donn Felker and delivered on YouTube.


More News

Last Updated ( Friday, 19 April 2013 )