Ticket #1377 (closed bug: fixed)
jquery 1.1.3.1 is slow in adding class
| Reported by: | jqueryvj | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.4 |
| Component: | core | Version: | 1.1.3 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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 .
Change History
comment:2 Changed 6 years 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/
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
