1 | | Pushed branch:t/10903b. I also refactored the code a little bit and fixed other incorrect addClass usage. The change brings a 0-2% performance improvement depending on browser and what's tested. Although, the results were so unstable, that I wouldn't take them seriously. Still, I like this change, because 200 a/r/hClass calls we make when initialising single editor it's a lot and modern, native API like classList seems to be the reasonable choice. |
| 1 | Pushed branch:t/10903b. I also refactored the code a little bit and fixed other incorrect addClass usage. The change brings a 0-2% performance improvement depending on browser and what's tested. Although, the results were so unstable, that I wouldn't take them seriously. Still, I like this change, because 200 a/r/hClass calls we make when initialising a single editor is a lot and switching to modern, native API like classList seems to be a reasonable decision. |