addClass and removeClass needlessly assign to className.
|Reported by:||jdunck||Owned by:|
Assigning to className, even with the same value, triggers a re-render in some browsers. This can cause a noticeable render delay on mobile. On causes.com with a $(body).addClass applying an existing class, it took 200ms to render.
I'm not sure how to show this in jsfiddle.
Change History (6)
comment:2 Changed 3 years ago by timmywil
- Component changed from unfiled to attributes
- Milestone changed from None to 1.10.3/2.0.4
- Priority changed from undecided to low
- Status changed from new to open
comment:3 Changed 3 years ago by dmethvin
- Resolution set to fixed
- Status changed from open to closed