--- title: "Breaking iOS Safari's 60 FPS Limit: How Web Apps Can Hit 120 Hz" author: "Alysaa Lissy" published: "2026-11-26T12:40:40.610Z" updated: "2026-11-26T12:40:40.610Z" url: "https://zyvop.com/breaking-ios-safari-s-60-fps-limit-how-web-apps-can-hit-120-hz-rhdxe" canonical: "https://zyvop.com/breaking-ios-safari-s-60-fps-limit-how-web-apps-can-hit-120-hz-rhdxe" tags: ["OffscreenCanvas","web-performance","iOS Safari","WebKit","ProMotion"] --- # Breaking iOS Safari's 60 FPS Limit: How Web Apps Can Hit 120 Hz How hidden scroll containers and OffscreenCanvas let iPhone web apps reach 120 Hz input and rendering, with no private APIs or Safari flags. ![Cover image]() Even a well-built web app can feel a step behind a native one on a 120 Hz iPhone. Part of the reason is a default rendering cap in Safari, and developer Rida F'kih has found a way around it. _Notes on Rida F'kih's November 20, 2026 post. The original has live demos that work best in Safari on an iPhone:_ [_rida.dev_]()_._ ## The short version On iPhones with 120 Hz ProMotion screens, Safari draws web pages at 60 Hz by default. F'kih found a way to get both input and rendering up to 120 Hz without private APIs or any change to Safari's settings. It takes two pieces: 1. Invisible native scroll containers, which he calls controllers, supply high-frequency input. 2. `OffscreenCanvas` presents frames without waiting for Safari's 60 Hz rendering pass. In his tests, the controller approach averaged 118 FPS, where ordinary pointer events held at 60. Here is the whole pipeline at a glance: ```mermaid flowchart LR A["Finger drags
invisible controller"] --> B["Compositor handles
scrolling natively"] B --> C["JavaScript reads
scrollTop / scrollLeft
up to 120 times a second"] C --> D["Render logic
state machine and shaders"] D --> E["OffscreenCanvas
pushes a frame"] E --> F["Screen updates
at 120 Hz"] ``` ## The problem Unless a user turns off the Safari developer flag _Prefer Page Rendering Updates near 60fps_, WebKit limits `requestAnimationFrame` to 60 Hz on a 120 Hz screen. Touch and pointer events on ordinary pages are held to the same rate, which is why even well-built mobile sites feel a little less fluid than native apps. Few users will ever dig into a hidden developer flag, so developers can't count on it. Installed web apps (PWAs) ignored the flag entirely, so they had no workaround at all. The limit isn't new, either. WebKit's bug tracker has carried a request for 120 Hz `requestAnimationFrame` support for years (bug 173434). Native scrolling doesn't suffer from this. It runs on the compositor, a separate thread that moves, clips and fades content without a JavaScript round-trip. That is why scroll-based UIs, like the swipeable sheet the React Aria team described in October, feel so smooth. F'kih's idea is to use the compositor as the source of input. ## Part 1: High-frequency input with controllers A controller is a scrollable area laid invisibly over the element you want to interact with. Native scrolling then gives you a lot for free: - Trackpad-style dragging: read the position only while the finger is down. - Momentum: use an effectively infinite scroll region. - Native bounce: configure over-scroll padding and container bounds. - Notched dials: use scroll snap points. The hard part is reading the position often enough. Scroll events fire only about 5 to 26 times per second during momentum scrolling, so he reads `scrollTop` and `scrollLeft` synchronously instead. Here is how each approach performed: | Approach | Result | | --- | --- | | Recursive `MessageChannel` loop | About 50,000 reads/s but only ~80 distinct values, and it pins a CPU core | | `Atomics` wake-ups | ~80 distinct positions/s, but needs `SharedArrayBuffer`, so COOP/COEP headers that break cross-origin assets | | `MessageChannel` throttled by `setTimeout`, phase-locked to vsync via `requestAnimationFrame` timestamps | ~80 reads/s without the waste | | Add an empty `requestAnimationFrame` loop | ~90 unique positions/s | | Add a tiny invisible scroller that smooth-scrolls in the background | Full 120 Hz | Three details explain those steps. First, `performance.now()` is rounded to the millisecond on iOS, so the minimum time between draws is derived from the display's refresh interval instead. Second, Safari's UI process sends the web process one scroll position at a time and waits for an acknowledgement, overwriting anything that arrives in between. When a rendering update is queued, though, Safari flushes the position without waiting. That is why the empty loop in the table helps. Third, ProMotion won't go above 90 Hz on its own here. A GPU-accelerated CSS animation can push the display to 120 Hz, but only while something is scrolling, which is the job of the background scroller in the last row. The author doesn't want the display pegged at 120 Hz all the time, so he uses these tricks only when animation is expected, such as during touches. If you don't need momentum, bounce or snapping, a passive `touchmove` listener on the controller already fires at 120 Hz. Two more wrinkles are worth knowing. Safari rounds `scrollTop` and `scrollLeft` to integers even though iOS scrolls with finer precision. The fix is to scale the scrollable surface up by the device pixel ratio and scale its container down by the reciprocal. The page itself can act as a controller too, but Safari throttles reported positions to about 10 Hz while the URL bar resizes. A scroll-driven animation on a non-GPU-accelerated property avoids that. Scaling the viewport is another option, with trade-offs such as scaling units and safe areas by hand. ## Part 2: Rendering at 120 Hz with OffscreenCanvas High-frequency input doesn't help if the DOM still updates at 60 Hz. Search engines and AI assistants will both tell you that 120 Hz canvas rendering on iOS Safari is impossible without the flag. F'kih's early attempts included experiments with workers, pre-rendered "flip-books" and live-generated video. Each was too laggy, too jagged, or used so much RAM that WebKit crashed. He landed on the working approach after seven attempts, with a lot of help from agents digging through WebKit's source. Call `transferControlToOffscreen()` on a canvas in WebKit on iOS and the original element becomes a placeholder. WebKit, following the HTML specification's recommendation, does not wait for the next rendering pass when the `OffscreenCanvas` pushes a frame. Frames therefore show up as soon as they are drawn. Unlike the earlier attempts, this is easy on the battery and uses only as much memory as the higher-frequency backing store needs. A minimal sketch of the API shape (illustrative only, not F'kih's code): ```javascript // main thread const canvas = document.querySelector("canvas"); const offscreen = canvas.transferControlToOffscreen(); const worker = new Worker("render-worker.js"); worker.postMessage({ canvas: offscreen }, [offscreen]); ``` ```javascript // render-worker.js let ctx; self.onmessage = ({ data }) => { if (data.canvas) ctx = data.canvas.getContext("2d"); // draw a frame each time the main thread forwards a new input sample }; ``` ## A Liquid Glass tab bar as the test case As a demanding test, F'kih built a small UI clone of the Ando mobile app with a Liquid Glass tab bar, buttons and smooth navigation transitions. Installed as a PWA, it was convincing enough that he kept double-checking he wasn't in the native app. The tab bar works in three layers: - Input: one controller per button sends timestamped events (which controller, how far it was dragged). A short history of samples is enough to detect a drag and estimate finger speed. - State machine: each frame, new events go in and a frame description comes out: lens position, lift and stretch, and pill visibility. Touching magnifies and lifts the lens, the bar stretches toward the finger past its bounds, and releasing settles the lens on the nearest tab. - Look: shaders on top of that state produce the Liquid Glass effect. The glass elements on F'kih's own page use the same ideas. On load, the page is snapshotted into a WebGL texture, and each glass element samples only the region beneath it. Components that use `requestAnimationFrame` update the texture from the main thread. `OffscreenCanvas` components post frames from their workers straight to the worker managing the texture, which keeps the main thread out of the loop and lets the shaders run at 120 Hz. ## Results F'kih recorded an iPhone 18 Pro at 240 FPS and slowed the footage to an eighth of its speed to compare input and rendering frame by frame. Over a three-second drag, the controller approach averaged 118 FPS while pointer events held at 60. In Low Power Mode, which normally limits animation to 30 FPS, the approach still delivered 60. Those are the author's own measurements, and I found no independent reproduction yet. ## Caveats F'kih is upfront about the limits. He wouldn't rebuild an entire application around this. - It relies on implementation behavior. Apple could make the `OffscreenCanvas` placeholder wait for the main-thread rendering pass without violating the HTML specification. - Apple has a history of closing similar loopholes. He points to its reaction shortly after Lochie Axon unveiled the `web-haptics` library. - He would rather Apple support ProMotion for websites natively, which would make the workaround unnecessary. ## When to use it These suggestions are mine, not the author's. - Treat it as progressive enhancement, with a normal 60 Hz fallback in case Safari's behavior changes. - Save it for high-value micro-interactions. Plain CSS and compositor-driven animation cover most needs. - Test on real devices, including Low Power Mode and installed PWAs. - Don't assume `requestAnimationFrame` is vsync-paced inside workers. One third-party issue report claims WebKit paces it with a roughly 15 ms timer. I haven't verified that, so drive frames from your input samples and measure. - Offer an opt-out for flashy effects. The author's demo lets readers disable its chromatic-aberration effect, and reduced-motion preferences deserve the same respect. ## FAQ ### Do I need this for ordinary animations? Probably not. Native scrolling already runs on the compositor, and the author notes that CSS animations cover predefined motion. The technique matters for interactions that JavaScript has to drive, like tracking a finger or computing layouts and shaders on every frame. ### Which iPhones does it work on? The author benchmarked on an iPhone 18 Pro, and I found no reports for other models. WebKit bug reports show that 120 Hz behavior has differed between iPhone Pros, iPads and Macs in the past, so test the devices you care about. ### What does it cost in battery? The post gives no battery numbers. The author only says the `OffscreenCanvas` path is easy on the battery compared with his earlier attempts, and he limits the 120 Hz boost to moments when animation is expected. ### How do I check that I'm really getting 120 Hz? The author filmed the screen at 240 FPS and stepped through the footage in slow motion. A frame counter inside the page is a quicker check, but filming is more reliable because it shows what the display actually presents. ## Bottom line Treat this as a clever escape hatch, not a foundation. It shows that careful use of native scrolling and `OffscreenCanvas` can get past Safari's default 60 Hz cap, and that web apps can feel much closer to native than most do today. Whether the trick keeps working is up to Apple, so build the experience to survive without it. ## Source - Rida F'kih, _Bypassing iOS Safari's 60 FPS Limit to Build Web Applications That Feel Native_, November 20, 2026: [https://rida.dev/blog/bypassing-ios-safari-60-fps-limit]()