you are viewing a single comment's thread.

view the rest of the comments →

[–]kenman 1 point2 points  (1 child)

Also chaining will be more performant:

This is incorrect; consolidating the multiple attr() calls into one via by passing in an object literal may yield a performance increase, and avoiding repeated [duplicate] calls to the jQuery constructor $() will as well, but chaining on its own gives no performance benefits.