jQuery: The Write Less, Do More JavaScript Library

Ticket #1377 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

jquery 1.1.3.1 is slow in adding class

Reported by: jqueryvj Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.4 Component: core
Version: 1.1.3 Keywords:
Cc: Needs: Review

Description

Hi,

Jquery 1.1.3.1 is too slow in addClass and removeClass. It was good in previous version. In my scenario I've a table of 500 rows to which css classes are to be added like. $(#tableNAme tr).filter("some rows on selector").addClass("Shown").removeClass("unShown").

This is taking lot of time with 1.1.3.1 which was not the case with previous jquery library jquery 1.1.2 .

I was not able to figure out whats the problem. I thought jquery 1.1.3.1 would be backward compatible, but it was not because most of my framework which was working fine with previous version was broken. I'm hoping that the jquery 1.1.4 will solve problems which I'm facing with current version .

Attachments

Change History

Changed 1 year ago by john

  • owner deleted
  • component changed from ajax to core

Changed 1 year ago by john

  • status changed from new to closed
  • resolution set to fixed

Not sure if this was an issue before, but I made some recent changes and the code seems to be about the same speed as the code in jQuery 1.1.2, demo: http://dev.jquery.com/~john/ticket/1377/

Note: See TracTickets for help on using tickets.