[jQuery]jQuery 1.4.2 Released

  • 5838
  • 0

[jQuery]jQuery 1.4.2 Released

官方blog消息http://blog.jquery.com/2010/02/19/jquery-142-released/

下載


New feature
http://api.jquery.com/category/version/1.4.2/

    • .delegate()
      Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements.
    • .undelegate()
      Remove a handler from the event for all elements which match the current selector, now or in the future, based upon a specific set of root elements.

效能比

jquery142_performance

According to the numbers presented by the Taskspeed benchmark we've improved the performance of jQuery about 2x compared to jQuery 1.4.1 and about 3x compared to jQuery 1.3.2.

主要performance tuning的部分

Specifically we’ve improved the performance of 4 areas within jQuery:

  • The performance of calling .bind() and .unbind(). (Ticket)
  • The performance of .empty(), .remove(), and .html(). (Ticket)
  • The performance of inserting a single DOM node into a document. (Ticket, Additional Commit)
  • The performace of calling $("body"). (Commit)

blog 與課程更新內容,請前往新站位置:http://tdd.best/