Remove code relatd to requestAnimationFrame.