Externalize requestAnimationFrame to batching strategy.