A simple test for seeing if it is faster to change a style or a class of an element.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- changing style:123
- changing class:15 - 87.8% faster
- changing style:115
- changing class:16 - 86.1% faster
- changing style:333
- changing class:99 - 70.3% faster
- changing style:261
- changing class:60 - 77% faster
- changing style:554
- changing class:111 - 80% faster