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 4 years ago by
|Component:||unfiled → attributes|
|Milestone:||None → 1.10.3/2.0.4|
|Priority:||undecided → low|
|Status:||new → open|