Bypassing iOS Safari's 60 FPS Cap for Native-Feel Web UIs
Original: Bypassing iOS Safari's 60 FPS Limit to Build Web Applications That Feel Native
Why This Matters
Closes a years-old performance gap between web and native mobile UX on Apple hardware.
Developer Rida F'kih documents a technique using the browser compositor and scroll APIs to bypass iOS Safari's 60 FPS requestAnimationFrame cap on 120 Hz iPhones, achieving native-like interaction without flags.
iOS Safari throttles requestAnimationFrame to 60 Hz on 120 Hz iPhones by default — a known pain point that makes even polished mobile web apps feel sluggish compared to native. The only workaround Apple officially provides is a buried developer flag: 'Prefer Page Rendering Updates near 60fps.' That's not a production solution.
F'kih's approach sidesteps JavaScript rendering entirely by offloading movement to the browser's compositor thread — the same path used by native scroll. As he notes: 'Finger to digitizer, digitizer to compositor, compositor to GPU.' No JavaScript round-trip, no 60 Hz ceiling.
The trick is reading scrollTop and scrollLeft synchronously at high frequency to treat a scroll container as a generic input controller. His first attempt — a self-recursive MessageChannel — worked but generated 50,000 reads per second for only 80 distinct values, pinning a CPU core. A SharedArrayBuffer/Atomics approach also extracted the right data but required COOP/COEP headers, breaking cross-origin assets. The final solution combined a MessageChannel with setTimeout throttling to align reads to the next tick without the overhead.
The technique unlocks scroll-driven physics — bounce, momentum, snap points, and inertia — without any native code. It was inspired in part by Devon Govett's React Aria swipeable sheet post and a video from React creator Jordan Walke demonstrating DOM/CSS-based native-like interactions.