update requestAnimationFrame detection