requestAnimationFrame(callback)

Calls callback on the next frame. Returns a request ID which can be used to cancel the request.

Param
Type
callback
function