Skip to main content

Migrating Earilier Versions of jQuery to jQuery 1.9

By Sam Deering



Free JavaScript Book!

Write powerful, clean and maintainable JavaScript.

RRP $11.95

ALOT of old functionality has (1.9.x) and will be (2.x) removed from the jQuery Library, with the latter removing support for oldIE. Looking forward in 2013 on how jQuery will support IE is quite a debate. Plugins using functions which no longer exist may break and start producing errors. You may start to see errors appearing if you’ve used the latest build to include jQuery in the past (see below) as this just pulls the latest version.

//jQuery API

//Google API

Errors might start appearing because some functions have been deprecated in jQuery 1.9.1 and removed from the API, ie they no longer exist. Previously popular cuprits such as $.browser() and $.live() have been removed completely and referencing them will break your code when used with later versions of jQuery. The quick solution is to use jQuery Migrate Plugin which updates the API of jQuery adding fixes to jQuery 1.9 migration errors.

So you might include it like this:

jQuery 1.9 Upgrade Guide

Also note that the unminified source versions add console.log/warnings which detail removed API function references and other warnings in an array stored on jQuery.migrateWarnings. Pretty useful if you want to update your jQuery plugins to support jQuery 1.9.x out of the box. I hope the decision to drop oldIE support doesn’t break too many websites… I guess only time will tell…

Related Articles

Sam Deering has 15+ years of programming and website development experience. He was a website consultant at Console, ABC News, Flight Centre, Sapient Nitro, and the QLD Government and runs a tech blog with over 1 million views per month. Currently, Sam is the Founder of Crypto News, Australia.

New books out now!

Learn the basics of programming with the web's most popular language - JavaScript

A practical guide to leading radical innovation and growth.

Integromat Tower Ad