AI Weekly Malaysia

Back to items Summaries

Bypassing iOS Safari's 60 FPS Limit to Build Web Applications That Feel Native

ID
50340
Status
summarized
Published
25 Nov 2026, 11:04 AM
Fetched
26 Nov 2026, 2:41 AM
Provider
Hacker News
Category
dev-community
Original URL
https://rida.dev/blog/bypassing-ios-safari-60-fps-limit
Source URL
https://hnrss.org/best

Summary

Score
7.0
Created
26 Nov 2026, 2:42 AM
Tags
Audience
developersvibe_coderssaas_founders

What happened

Rida F'kih writes that iOS Safari caps requestAnimationFrame at 60 Hz even on 120 Hz iPhones unless you enable the buried "Prefer Page Rendering Updates near 60fps" developer flag, so gesture-driven web interactions feel sluggish. The proposed workaround is to stop animating from JS touch/pointer events and instead place elements inside a scrollable container so the compositor thread drives motion, then read scroll position outside the renderer pass to extract native bounce, momentum, and snap points. The post builds on Devon Govett's October React Aria piece "Scrolling is All You Need: Building a Swipeable Sheet" and a Jordan Walke demo video on X.

Why it matters

If your mobile web app implements drag or swipe by setting CSS transforms inside touchmove/pointermove handlers, that path tops out at 60 FPS on a 120 Hz iPhone — half the display's refresh rate — while a compositor-driven scroll container does not. The concrete decision is whether to restructure high-frequency interactions (sheets, carousels, dials, trackpad-style panning) around a scrollable region plus scroll-position readback, versus accepting 60 FPS or telling users to flip a Safari developer flag they will never find.

Discussion angle

Pull up your own mobile web app on an iPhone and compare a JS-transform drag against the same element inside a scroll container — then debate whether hijacking scroll for gestures is worth the accessibility and scroll-chaining tradeoffs.

Top