I wish industry encouraged engineers more to pay attention to this kind of things, rather than to flashy bells and whistles. 30-50ms may seem insignificant, but has a huge impact on the overall experience.
“Realtime” doesn’t imply faster. In fact often the opposite. It just means certain timing constraints will be satisfied, often making explicit what the costs (tradeoffs) are.
I think one of the issues here is how to do it with something like React without it being hacky. If you are working with React for instance, updating the DOM manually may seem very bad, so you must take care how to approach this without doing unnecessary calculations and re-renders.
12 comments
[ 3.1 ms ] story [ 48.6 ms ] threadBut note that requestIdleCallback is not supported in Safari, so you have to shim it there.
The spec is a good read: https://w3c.github.io/requestidlecallback/
I looks very promising. Taking the best parts of React's API, but avoiding the performance bottleneck of a VDOM.