{"id":1214,"date":"2013-04-23T11:59:16","date_gmt":"2013-04-23T02:59:16","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=1214"},"modified":"2013-04-23T13:38:58","modified_gmt":"2013-04-23T04:38:58","slug":"jquery-2-0-released-web-designer-and-web-developer","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/jquery-2-0-released-web-designer-and-web-developer\/","title":{"rendered":"jQuery 2.0 Released news for Web designer and Web Developer"},"content":{"rendered":"<p>jQuery Latest version <strong>2.0<\/strong> has arrived!\u00a0The arrival of jQuery 2.0 is an epic milestone for\u00a0<a href=\"https:\/\/www.santoshkori.com\/blog\/category\/web-design\/web-designer\/\">Web designer<\/a> and <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/web-development\/web-developer\/\">Web Developer<\/a>. Reduced size,\u00a0No more support for IE6\/7\/8,\u00a0Custom builds for even smaller files\u00a0and more. \u00a012 percent smaller than its predecessor. <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\">jQuery<\/a> 2.0\u00a0leaves behind the older Internet Explorer 6, 7, and 8 browsers. In return it is smaller, faster, and can be used in JavaScript environments where the code needed for old-IE compatibility often causes problems of its own.\u00a0<b>But don\u2019t worry, the<a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\"> jQuery<\/a> team still supports the 1.x branch which\u00a0<em>does<\/em>\u00a0run on IE 6\/7\/8.<\/b>\u00a0You can (and should) continue to use<a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\"> jQuery<\/a> 1.9 (and the upcoming 1.10) on web sites that need to accommodate older browsers.<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2013\/04\/jQuery-2.0-Web-designer-and-Web-Developer.gif\" href=\"https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2013\/04\/jQuery-2.0-Web-designer-and-Web-Developer.gif\" alt=\"\" title=\"\"><\/p>\n<h2><!--more--><\/h2>\n<p>Created to simplify the process of writing JavaScript and manipulating HTML, jQuery began life a mere seven years ago, but quickly found favor with developers sick of dealing with cross-browser JavaScript hassles. According to one\u00a0survey published last year, <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\">jQuery<\/a> turns up on roughly half of all sites on the web.\u00a0\u201c<a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\">jQuery<\/a> 2.0 is intended for the modern web,\u201d\u00a0writes\u00a0<a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\">jQuery\u2019s<\/a> Dave Methvin on the Query Foundation website. \u201cWe\u2019ve got <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\">jQuery<\/a> 1.x to handle older browsers and fully expect to support it for several more years.\u201d<\/p>\n<h2>Where to Get It<\/h2>\n<p>The final jQuery 2.0.0 files can be found here on the jQuery CDN:<\/p>\n<ul>\n<li><a href=\"http:\/\/code.jquery.com\/jquery-2.0.0.min.js\" target=\"_blank\" rel=\"noopener\">http:\/\/code.jquery.com\/jquery-2.0.0.min.js<\/a>\u00a0(minified, for production)<\/li>\n<li><a href=\"http:\/\/code.jquery.com\/jquery-2.0.0.js\" target=\"_blank\" rel=\"noopener\">http:\/\/code.jquery.com\/jquery-2.0.0.js<\/a>\u00a0(unminified, for testing)<\/li>\n<\/ul>\n<p>The files should also be available on the Google and Microsoft CDNs soon, but please give these folks a few days before releasing a storm of impatient tweets. Also remember that production web sites should be requesting a\u00a0<em>specific<\/em>\u00a0version from any CDN; using a non-specific version like\u00a0<code>\/2\/<\/code>\u00a0or\u00a0<code>jquery-latest.js<\/code>\u00a0is\u00a0<a href=\"http:\/\/encosia.com\/the-crucial-0-in-google-cdn-references-to-jquery-1-x-0\/\" target=\"_blank\" rel=\"noopener\">considered harmful<\/a>\u00a0to your web site\u2019s health and performance. If you\u2019re upgrading from a version before 1.9, we recommend that you use the\u00a0<a href=\"https:\/\/github.com\/jquery\/jquery-migrate\/#readme\" target=\"_blank\" rel=\"noopener\">jQuery Migrate plugin<\/a>\u00a0and read the\u00a0<a href=\"http:\/\/jquery.com\/upgrade-guide\/1.9\/\" target=\"_blank\" rel=\"noopener\">jQuery 1.9 Upgrade Guide<\/a>, since there have been a lot of changes. It\u2019s easy to use the plugin, just include it in your HTML file after<a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\"> jQuery<\/a> and open your browser console to see the messages it generates:<\/p>\n<pre>&lt;script src=\"http:\/\/code.jquery.com\/jquery-2.0.0.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"http:\/\/code.jquery.com\/jquery-migrate-1.1.1.js\"&gt;&lt;\/script&gt;<\/pre>\n<h2>How to Use It<\/h2>\n<p><a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\">jQuery<\/a> 2.0 is intended for the modern web; we\u2019ve got<a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\"> jQuery<\/a> 1.x to handle older browsers and fully expect to support it for several more years. If you want, you can serve 2.0 to newer browsers and 1.9 to older ones using our\u00a0<a href=\"http:\/\/blog.jquery.com\/2013\/03\/01\/jquery-2-0-beta-2-released\/\" target=\"_blank\" rel=\"noopener\">conditional comment trick<\/a>, but that is<em>not<\/em>\u00a0required. The simplest way to support older browsers is to use <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/jquery\/\">jQuery <\/a>1.x on your site, since it works for all browsers. With the release of<a href=\"https:\/\/www.santoshkori.com\/blog\/jquery\/jquery-2-0-released-web-designer-and-web-developer\/\"> jQuery 2.0<\/a>, there are a few environments where the <a href=\"https:\/\/www.santoshkori.com\/blog\/jquery\/jquery-2-0-released-web-designer-and-web-developer\/\">jQuery<\/a> team will no longer support use of the 1.x line because 2.x is a far better choice. These are typically non-web-site scenarios where support for older IE isn\u2019t relevant. They include:<\/p>\n<ul>\n<li>Google Chrome add-ons<\/li>\n<li>Mozilla XUL apps and Firefox extensions<\/li>\n<li>Firefox OS apps<\/li>\n<li>Chrome OS apps<\/li>\n<li>Windows 8 Store (\u201cModern\/Metro UI\u201d) apps<\/li>\n<li>BlackBerry 10 WebWorks apps<\/li>\n<li>PhoneGap\/Cordova apps<\/li>\n<li>Apple UIWebView class<\/li>\n<li>Microsoft WebBrowser control<\/li>\n<li>node.js (combined with jsdom or similar)<\/li>\n<\/ul>\n<p>Many of these environments are themselves a work in progress, and have unique sets of rules or restrictions that are different from the ones typically found when jQuery is used for browsers on Internet web sites. Although we aren\u2019t able to test regularly in all of these non-browser scenarios, we\u2019d like to hear about your experiences in using <a href=\"https:\/\/www.santoshkori.com\/blog\/jquery\/jquery-2-0-released-web-designer-and-web-developer\/\">jQuery<\/a> with them. Even better, we\u2019d love for the communities supporting these environments to pool and share their knowledge about how to use <a href=\"https:\/\/www.santoshkori.com\/blog\/jquery\/jquery-2-0-released-web-designer-and-web-developer\/\">jQuery 2.0<\/a> there.<\/p>\n<h2>How 2.0 Changed<\/h2>\n<p>Here are some highlights of the changes that jQuery 2.0 brings: <b>No more support for IE 6\/7\/8:<\/b>\u00a0Remember that this can also affect IE9 and even IE10 if they are used in their \u201cCompatibility View\u201d modes that emulate older versions. To prevent these newer IE versions from slipping back into prehistoric modes, we suggest you always use an\u00a0<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/cc288325(v=vs.85).aspx\" target=\"_blank\" rel=\"noopener\">X-UA-Compatible<\/a>\u00a0tag or HTTP header. If you can use the HTTP header it is slightly better for performance because it avoids a potential browser parser restart. <b>Reduced size:<\/b>\u00a0The final <a href=\"https:\/\/www.santoshkori.com\/blog\/jquery\/jquery-2-0-released-web-designer-and-web-developer\/\">jQuery 2.0.0<\/a> file is 12 percent smaller than the 1.9.1 file, thanks to the elimination of patches that were only needed for IE 6, 7, and 8. We had hoped to remove even more code and increase performance, but older Android\/WebKit 2.x browsers are now the weakest link. We\u2019re carefully watching Android 2.x market share to determine when we can cross it off the support list, and don\u2019t expect it to take very long. <b>Custom builds for even smaller files:<\/b>\u00a0This feature has been greatly refined and extended since its debut in <a href=\"https:\/\/www.santoshkori.com\/blog\/jquery\/jquery-2-0-released-web-designer-and-web-developer\/\">jQuery<\/a> 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\u2019s\u00a0<code>querySelectorAll<\/code>\u00a0API, lets you shrink the build to less than 10KB when minified and gzipped. See the\u00a0<a href=\"https:\/\/github.com\/jquery\/jquery\/#readme\" target=\"_blank\" rel=\"noopener\">README<\/a>\u00a0for instructions on how to create a custom build, and remember that any plugins you use will also need to stick to the subset you select. <b>jQuery 1.9 API equivalence:<\/b>\u00a0<a href=\"https:\/\/www.santoshkori.com\/blog\/jquery\/jquery-2-0-released-web-designer-and-web-developer\/\">jQuery 2.0<\/a> is API-compatible with 1.9, which means that all of the changes documented in the<a href=\"http:\/\/jquery.com\/upgrade-guide\/1.9\/\" target=\"_blank\" rel=\"noopener\">jQuery 1.9 Upgrade Guide<\/a>\u00a0have been applied to <a href=\"https:\/\/www.santoshkori.com\/blog\/jquery\/jquery-2-0-released-web-designer-and-web-developer\/\"><strong><em>jQuery 2.0<\/em><\/strong><\/a> as well. If you haven\u2019t yet upgraded to jQuery 1.9, you may want to try that first. Be sure to use the\u00a0<a href=\"https:\/\/github.com\/jquery\/jquery-migrate\/#readme\" target=\"_blank\" rel=\"noopener\">jQuery Migrate plugin<\/a>. The full record of changes can be found in the changelog below, and in the\u00a0<a href=\"https:\/\/github.com\/jquery\/jquery\/commits\/master\" target=\"_blank\" rel=\"noopener\">list of commits<\/a>\u00a0on GitHub.<\/p>\n<h2>What\u2019s Next<\/h2>\n<p>In keeping with our pledge to minimize API divergence between the 1.x and 2.x branches, we\u2019ll be releasing a jQuery 1.10 within a couple of months that incorporates the bug fixes and differences reported from both the 1.9 and 2.0 beta cycles. In the future, we will be maintaining feature parity between 1.10 and 2.0, 1.11 and 2.1, etc. Patch releases will happen in each branch on their own schedule, based on team resources and severity of any reported bugs. Please do try this new release with all your web sites and HTML apps. If you find problems, create a minimal test case (preferably using a site like\u00a0<a href=\"http:\/\/jsfiddle.net\/\" target=\"_blank\" rel=\"noopener\">jsFiddle<\/a>\u00a0or\u00a0<a href=\"http:\/\/jsbin.com\/\" target=\"_blank\" rel=\"noopener\">jsbin<\/a>) and submit it to our\u00a0<a href=\"http:\/\/bugs.jquery.com\/\" target=\"_blank\" rel=\"noopener\">bug tracker<\/a>. We\u2019re particularly interested in situations where jQuery 1.9.1 behaves differently than <a href=\"https:\/\/www.santoshkori.com\/blog\/jquery\/jquery-2-0-released-web-designer-and-web-developer\/\"><strong><em>jQuery 2.0<\/em><\/strong><\/a>.0, since that\u2019s something we\u2019ve tried to avoid.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>jQuery Latest version 2.0 has arrived!\u00a0The arrival of jQuery 2.0 is an epic milestone for\u00a0Web designer and Web Developer. Reduced size,\u00a0No more support for IE6\/7\/8,\u00a0Custom builds for even smaller files\u00a0and more. \u00a012 percent smaller than its predecessor. jQuery 2.0\u00a0leaves behind the older Internet Explorer 6, 7, and 8 browsers. In return it is smaller, faster, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[582,583,585,580,579,578,581,584],"class_list":["post-1214","post","type-post","status-publish","format-standard","hentry","category-jquery","tag-download-jquery-2-0","tag-download-latest-jquery-javascript-file","tag-how-to-use-jquery","tag-jquery-2-0","tag-jquery-2-0-released","tag-jquery-2-0-released-news-for-web-designer-and-web-developer","tag-latest-jquery-version","tag-where-to-get-it-jquery"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=1214"}],"version-history":[{"count":9,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1214\/revisions"}],"predecessor-version":[{"id":1219,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1214\/revisions\/1219"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=1214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=1214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=1214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}