Throttled scroll and resize event via requestAnimationFrame.