jQuery 2.0 released





One of the most powerfull JavaScript libraries and frameworks has reached version 2.0. It leaves behind IE 6, 7 and 8 support but is smaller and faster. jQuery 2 runs only on IE9 and newer, leaving legacy support in the hands of the (still maintained) 1.x branch.



The jQuery team stated the final 2.0.0 file is 12 per cent smaller than the 1.9.1 file, mostly due to the “elimination of patches that were only needed for IE 6, 7 and 8”

Another new thing is custom builds for even smaller files. jQuery team stated that "this feature has been greatly refined and extended since its debut in jQuery 1.8. You can now exclude combinations of 12 different modules to create a custom version that is even smaller. A new minimal selector engine, basically a thin wrapper around the browser’s querySelectorAll API, lets you shrink the build to less than 10KB when minified and gzipped."

With the release of jQuery 2.0, there are a few environments where the jQuery team will no longer support use of the 1.x line because 2.x is a far better choice.


Developers advice

"Developers should carefully examine their needs rather than immediately move to the new jQuery 2. If you still need legacy IE support, stick to 1.x. If you don't, move to 2.x. There are plenty of bug fixes and improvements along with the file-size saving, and the API will be identical across the two versions"(taken from: http://www.netmagazine.com/news/devs-welcome-jquery-20-release-132696).


See more on: http://blog.jquery.com/2013/04/18/jquery-2-0-released/?utm_source=javascriptweekly&utm_medium=email

No comments:

Post a Comment