jQuery Updated again with version 1.6.3

jeffcogswell 0 Tallied Votes 520 Views Share

A minor update to the 1.6 version of jQuery was just released today. After a big outcry of version 1.6's changes to the way properties work, the jQuery team quickly released version 1.6.1 to make the new techniques more compatible with the older functionality, hopefully preventing sites from breaking. The release also fixed some bugs, as did version 1.6.2.

And now 1.6.3 also fixes several bugs, along with one change that some people will find disappointing: They dropped support for the requestAnimationFrame API. When 1.6 came out, support for requestAnimationFrame was added to allow for smoother animation. However, requestAnimationFrame itself has some issues, and as a result it didn't carry forward very well into jQuery. People were reporting problems with the way some animation would wait to occur, and then would run through the whole sequence at an extremely fast speed. (They called it a wormhole.) So the jQuery team decided the jQuery world would have to wait, and they completely dropped requestAnimationFrame from jQuery. They're hoping they can re-introduce it after they get the kinks worked out. (Of course, requestAnimationFrame is still there, just not a part of jQuery, so you can still use it yourself.)

In addition, there are a few minor fixes. There's a security fix to help prevent script injection. When you precede a selector with a # (which is used for specifying IDs), the jQuery library won't allow HTML tags to be in the selector. The whole list of bug fixes is pretty long for a minor release, and some of them fix situations where the browser actually crashed. For example, here are two bugs that have been fixed. (I'm copying the bug report titles verbatim):

"$.inArray crashes IE6 and Chrome if second argument is null or undefined"
"IE 8 crashes when using background-image on BODY in css"

All in all, you shouldn't have to make any changes to your jQuery code if you were running with 1.6.2 or 1.6.1. For details, see the official jQuery blog posting, as well as a link in that posting to download the new version.

Dani AI

Generated

This thread originally announced a maintenance release; for readers maintaining old sites that still run 1.6-era jQuery, the following is a short, practical checklist to avoid breakage and plan an upgrade. Credit to for starting the discussion and to and for later updates — the steps below pick up from that history and focus on what to do now.

Quick check: discover the version actually loaded. Open DevTools and run this in the Console:

console.log($.fn.jquery); // prints the jQuery version string

If it returns undefined, jQuery either isn’t present or is loaded after the check. Use this first so you know whether you’re dealing with truly legacy code or something already upgraded. (api.jquery.com)

If you need to move forward safely, use the jQuery Migrate plugin as a diagnostic: load the development Migrate build (after jQuery) to get console warnings about deprecated/removed APIs, fix the issues it reports, then remove Migrate when the console is clean. Example (local or CDN paths of your choice):

<script src="path/to/jquery.js"></script>
<script src="path/to/jquery-migrate.js"></script>

Run your site in all target browsers, fix warnings, then drop the dev Migrate and (only if necessary) use the production Migrate temporarily while finishing fixes. (github.com)

If animations are a concern, prefer native requestAnimationFrame with proper timestamp/delta math and a setTimeout fallback for very old browsers; test on high-refresh-rate displays and background tabs to avoid timing bugs. Finally, target a maintained jQuery branch and test third-party plugins thoroughly — jQuery development and releases are active, so check the project repo/releases for current status before upgrading. (developer.mozilla.org)

Troubleshooting tips: back up assets, run tests in staging, search console output from Migrate for the exact lines to change, and test one plugin at a time to isolate incompatibilities.

Member Avatar for Member #949455
Member #949455

For details, see the official jQuery blog posting, as well as a link in that posting to download the new version.

This is the update of jQuery Blog:

http://blog.jquery.com/

This is the latest version of jQuery which is jQuery 1.9.1:

http://jquery.com/download/

lambing 0 Light Poster

Great!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.