Adding `requestAnimationFrame` fallback for server-side