Offload animation repainting to browser for optimized performance. You should call this method whenever you're ready to update your animation onscreen. This will request that your animation function be called before the browser performs the next repaint.
Docs: https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame