Is Your Website Using jQuery 2.0?

If you’ve been using jQuery — the lightweight, “write less, do more” library to bring interactive effects to your websites — you may have missed last spring’s 2.0 release.

The good news is that jQuery 2.0 is faster and smaller than all previous versions. The bad news: Because jQuery 2.0 is designed for the modern web, it no longer supports legacy versions of Microsoft Internet Explorer, including IE 6, IE 7 and IE 8. This is a bold move by the jQuery team and has stirred some debate among many web developers.

Among the environments the jQuery team won’t support 1.x versions, which they have confined to non-web scenarios where older IE support isn’t necessary:

  • Google Chrome add-ons
  • Firefox OS apps
  • Chrome OS apps
  • BlackBerry 10 WebWorks apps
  • Apple UIWebView class

jQuery a boon to create interactive effects

With nearly 17 million sites on the web using jQuery, you are most likely to visit or develop one with this script library packed. It has been extremely helpful to bring interactive effects to websites without having to worry about cross-browser capabilities (even on the mobile side).

jQuery 2.0With the release of 2.0, jQuery Foundation President Dave Methvin urged developers to reference only a “specific version” on their websites and to use any non-specific version is considered harmful to a website’s health and performance.

According to a recent report by w3schools.com, however, IE 8 still remains the most used version of Microsoft Internet Explorer as of August, so it is possible that visitors are still visiting your site using one of the legacy versions.

To account for this possibility, jQuery’s 1.9 series will offer full API compatibility with 2.0 but will have full support for older versions of IE. It will also be maintained with bug fixes addressed on an ongoing basis. Other the notable changes in jQuery 2.0:

  • The final 2.0.0 is slightly smaller than the previous 1.9.1 file due to eliminating software patches only needed for IE 6, 7 and 8.
  • Because combinations of 12 different modules have been excluded, custom builds can be created to be much smaller files.

Although most developers agree that legacy versions of IE will eventually be phased out, IE 8 has lingered longer than Microsoft or most computing experts ever expected.

The jQuery team’s pragmatic approach to phase out legacy IE support will serve the needs for Web developers and end users for now. But for all developers, proceed with caution when updating your jQuery script to ensure the end user experience will not be affected adversely.

An easy way to avoid problems updating jQuery: Simplify the transition from older versions by using the jQuery Migrate plugin. While the plugin restores features so older code will run on jQuery 1.9 or later versions, it’s advisable to use the uncompressed development version to identify compatibility issues you can fix easily.

Tags: ,

Written by Judy Tsai

Judy Tsai leads the digital development projects for national and Texas-based clients, overseeing all aspects of the agency’s and clients’ software systems, server operations, app and website development, and data mining and analysis. An information technology master, she builds large, complex interactive products that deliver ease, usability and functionality of a simple web interface. Read more.

esd newsletter

esd social

esd & associates 07/10/17
Don’t miss your chance to take advantage of FREE fitness activities this summer. esd has partnered with San Antonio Parks and Recreation (SAPR) for three years in a row to bring the SA Parks Fitness App. So click here http://bit.ly/2uJfxZR to learn more about how you can get fit this summer and how to win some awesome prizes.
esd & associates 07/06/17
TBT to our amazing VP of Operations, Lindsay Ackels, representing esd at the Best Practices in Worksite Wellness Forum. esd is a proud member of the Mayors Fitness Council and is proud to offer our employees wellness incentives.
esdresults 06/29/17
Our VP of Operations Lindsay, will be on an #SABGH forum panel about best practices for #workplacewellness tomorrow… https://t.co/PzVHXS7SIC
esd & associates 06/29/17
Our VP of Operations, Lindsay Ackels, will be on an San Antonio Business Group on Health (SABGH) forum panel discussing best practices for workplace wellness. Lindsay helps esd stay healthy all year round! esd is a proud member of the Mayor’s Fitness Council, and we are excited for Lindsay to represent us tomorrow at 9:00 a.m. at the forum. Read more here: http://bit.ly/2u48pGX
esd & associates 06/27/17
Hard to believe our city is turning 300. Time really does fly when you’re having fun! We’ll have some exciting news for you as 2018 approaches about our involvement in this year-long celebration stay tuned!

Your Digital Marketing Source

Introducing the esd Media Library

At esd, we write white papers on a broad variety of digital media topics, from lead nurturing and email marketing to search engine optimization and B2B buyer personas. Consult our media library for in-depth answers to all your digital media questions.