Throttle functions using requestAnimationFrame.