As mentioned in the requestAnimationFrame tutorial, I am confused with these two statements
- requestAnimationFrame requests the browser to call the animation loop when it is ready for a redraw
- The animation loop is called max of 60 times a second.
Does this mean, requestAnimationFrame will call its ‘callback’ method only when it knows that the browser is ready for a redraw i.e. if the browser is busy, the number of times animation loop gets called is eventually reduced.
Does this mean that the callback is called 60 times a second and redraw happens when browser is ready for repaint?