React Performance: How Fast can React Boot?
Apr 22, 2022
Theoretically JavaScript should able to handle millisecond update, but due to browser render performance, it won’t able to catch everything.
The screenshot show the counter update in
- 1 millisecond
- 10 millisecond,
- 100 millisecond
- 1000 millisecond (aka 1 sec)
If everything catch up well, system should have 1000, 100, 10, 1 but the reality is React will be about 6 sec delay, and Vanilla JS would be hard to predict, sometimes run earlier then React, sometimes run before React, it might caused by memory catching?
You might want to play the code by fork from following sandbox: