On iOS Safari, WebKit restricts `requestAnimationFrame` to 60 Hz, even on devices with 120 Hz displays, unless a specific developer flag is enabled. This limitation also applies to touch and pointer events on standard web pages. This restriction causes web applications to feel less fluid and responsive compared to native applications, which can utilize the full refresh rate of the display.
The key to bypassing this limitation lies in understanding how the browser handles scrolling. Scrolling is managed by the compositor thread, which operates independently of JavaScript and the main rendering thread. This allows scrolling to occur at the display's full refresh rate, providing smooth, physics-based interactions without JavaScript round-trips. The process involves the finger input going directly to the digitizer, then to the compositor, and finally to the GPU.
The proposed method involves placing interactive elements within a scrollable area. Instead of directly manipulating elements with JavaScript and CSS transforms, which are subject to the 60 FPS limit, the technique reads the scroll position from the compositor. This allows developers to 'extract' native bounce, physics, and momentum from the scroll area and apply them to animations, effectively achieving interactions that run at the device's native refresh rate. This can create experiences like 1:1 trackpad interactions or trackball-like momentum by making regions infinitely scrollable.
This approach offers a way for web developers to create more performant and native-feeling interactions on iOS Safari without relying on hidden developer settings. By shifting the animation logic to leverage the compositor, web applications can overcome a significant performance bottleneck, potentially improving user experience and closing the gap between web and native mobile applications in terms of fluidity and responsiveness.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
A new technique allows web applications on iOS Safari to achieve higher refresh rates than the default 60 FPS limit for JavaScript-driven animations. By leveraging the browser's compositor thread for scroll events, developers can create web interactions that feel more native, matching the device's display refresh rate.