New: Add support for requestAnimationFrame