Trying to understand the view-update loop better

To complement this, JavaScript is single threaded, so the next frame has to wait for any computation started before it was scheduled. That is why pages sometimes feel unresponsive. If you want to be really sure that the view was updated, you can wait for message from onAnimationFrame before starting computation, or run it in a different web worker.

You might also be interested in those discussions:

1 Like