typedef js.html.RequestAnimationFrameCallback = Float ->Bool

Available on js