InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

JQuery 1.6 Released With Performance Upgrades, Breaking Changes

Posted by Roopesh Shenoy on May 06, 2011

Sections
Enterprise Architecture,
Operations & Infrastructure,
Process & Practices,
Architecture & Design,
Development
Topics
Java ,
Ruby ,
Websphere ,
Javascript ,
Dynamic Languages ,
IBM ,
.NET ,
Application Servers ,
Agile in the Enterprise ,
Languages ,
Companies ,
Agile ,
Programming ,
jQuery ,
Announcements

 JQuery 1.6 has just been released with several performance and cross-browser compatibility improvements and major rewrite of the Attribute module.

Some major improvements in the new release -

  • Better performance of attr(), val() and data() methods
  • Support for Boolean attributes in attr() method
  • Hooks added to allow extensibility for attr() and val() methods
  • map() method adds support for objects (to map properties of a JavaScript object to a function)
  • Ability to update CSS using relative values (“+=”, “-=”)
  • deferred.always(), deferred.pipe() added to reduce code and make it more readable
  • Synced animations – all animations are now synced to the same time-interval. Animations are also smoother using newer browser features
  • find(), closest() and is() can now take all DOM elements and JQuery objects as arguments

All these new features are explained in detail along with the entire list of bug fixes on the official blog post.

Unfortunately, there are also some breaking changes, and the team has put up a separate section highlighting them on their official update -

Changes JQuery 1.5.2 e.g. JQuery 1.6 e.g.
data() method camel-cases data attributes with embedded dashes.
data-max-value="15" creates { max-value: 15 } data-max-value="15" creates { maxValue: 15 }
Bifurcation between properties and attributes. attr() method cannot be used now to get property values. prop() and removeProp() methods introduced to handle property values checkbox.attr("checked") returns (true) if checkbox is checked



 
checkbox.attr(“checked”) returns empty string. Need to use
$(this).prop("checked") or
$(this).is(":checked") inside the event handler, this being the element clicked.

The second change is especially expected to have impact on existing projects that decide to upgrade to 1.6.

This release comes just 3 months after 1.5 release and 1 month after the 1.5.2 release. Work has already started on 1.7 and the JQuery team is already accepting feature proposals.

JQuery is a JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. 

 

  • This article is part of a featured topic series on Agile
Updates by Roopesh Shenoy Posted
  1. Back to top

    Updates

    by Roopesh Shenoy

    The team has just released update 1.6.1.

    They are also working on JQuery color plugin v2, and have just released a beta version.

Educational Content

Evolution in Data Integration From EII to Big Data

Approaches to integrating data are changing with emergence of cloud computing.

Winning Hearts and Minds: How to Embed UX from Scratch in a Large Organization

Michele Ide-Smith presents the lessons learned in the process of introducing UX principles and techniques into a large organization through a series of small steps.

LMAX Disruptor: 100K TPS at Less than 1ms Latency

Dave Farley and Martin Thompson discuss solutions for doing low-latency high throughput transactions based on the Disruptor concurrency pattern.

Thoughts on Test Automation in Agile

Rajneesh Namta shares his thoughts, experiences, and some of the critical lessons learned while implementing software test automation on a recent Agile project.

Actor Interaction Patterns

Dale Schumacher presents several patterns of actor interaction that can be used in collaborative programs written in any language.

Scalaz: Functional Programming in Scala

Rúnar Bjarnason discusses Scalaz, a Scala library of pure data structures, type classes, highly generalized functions, and concurrency abstractions to perform functional programming in Scala.

Faster, Better, Higher – But How?

One of the main challenges when designing software architecture is considering quality attributes. Not only their design turns out to be difficult, but also the specification of these attributes.

Software Naturalism - Embracing the Real Behind the Ideal

Michael Feathers analyzes real code bases concluding that code is not nearly as beautiful as designers aspire to, discussing the everyday decisions that alter the code bit by bit.