Bypassing iOS Safari's 60 FPS Limit to Build Web Applications That Feel Native
Bypassing iOS Safari’s 60 FPS Limit to Build Web Applications That Feel Native Rida F'kih · November 20, 2026 · 10 min read Devon Govett of React Aria posted “Scrolling is All You Need: Building a Swipeable Sheet” back in October, and in it he talked about his team developing a sheet component that cleverly leverages the physics and smooth interactions provided by native browsers to provide the illusion of a native interaction. More recently, Jordan Walke, creator of React, posted a video of an experiment on X showing a convincing native-like mobile interaction using DOM & CSS. It re-established a long-lived itch that I’ve had, and prompted this response from me. It’s something I could never justify building, however. Anything I built using this method would be pegged to 60 FPS. Why the iOS Safari Experience Sucks What the video Jordan Walke posted doesn’t show is that, unless you flip the “Prefer Page Rendering Updates near 60fps” flag buried deep within the Safari developer settings on iOS, WebKit limits requestAnimationFrame to just 60 Hz on a 120 Hz screen, and on a regular page, touch and pointer events are held to that same rate. This is what makes even the best mobile websites feel irritating to use. How can I make this experience suck less without resorting to flags? Let’s call back to the React Aria piece. The reason it feels so nice is that scrolling is the responsibility of the compositor. It runs in its own thread. It moves, clips and fades without a JavaScript round-trip. Finger to digitizer, digitizer to compositor, compositor to GPU. This will become the basis of our interaction. High Refresh Rate Interactions Behold, two grids. They both move a square when you drag. The one on the left uses JavaScript events and sets the transform attribute in CSS, while the one on the right simply places a square in a scrollable area. If you’re on iOS Safari, you’ll immediately be able to tell which is which because one refreshes at most 60 times a second in a renderer pass, while the other uses the compositor. In order to leverage the power of the scroll area, we need to find a way to read the scroll position outside of the renderer. If we can do that, we can treat it like a trackpad, or use it to “extract” native bounce, physics, momentum, etc., and apply them directly from the compositor to our animations. Want a 1:1 trackpad experience? We just measure only when the finger is pressed. Want a true trackball with native momentum? We just make it an infinitely scrollable region. Want native bounce? We configure over-scroll padding and set the bounds of the container. Want a dial with notches? Snap points! The point is, it’d be crazy flexible if we could just find a way to pull the values out of it frequently enough. Creating “The Controller” I measured scroll events updating 5 to 26 times per second during momentum scroll on an iPhone Duo. The best-case scenario is during slow, deliberate scrolls where it reaches almost 60 updates a second. Useless. Instead, we’ll be aiming to read scrollTop and scrollLeft synchronously. First, I tried having a MessageChannel call itself recursively, which worked: but it produced 50,000 reads a second with just 80 distinct values. That’s a lot of waste and heat since it pins a CPU core. Next failure was trying to use Atomics to wake at the screen’s refresh rate, which worked and similarly extracted 80 distinct positions every second, but the drawbacks were too great. Since it needs a SharedArrayBuffer, we’re forced to use COOP/COEP headers which break cross-origin assets on our website. What finally worked was using a MessageChannel like before, throttling the next measurement to the next tick using a setTimeout according to the refresh rate of the device, phase-locked to vsync using requestAnimationFrame timestamps. I was nervous about this approach, but as you’ll see later, it panned out well. The only remaining drawback specific to this solution was easy to work around. iOS rounds performance.now() to the millisecond, so I derived the minimum time between draws from the refresh interval. Each solution got us 80 position reads per second. Two-thirds towards our goal of 120 Hz input. Safari’s UI process sends the web process one scroll position at a time, and waits for an acknowledgement from the web process before sending another. Anything that arrives in the meantime is overwritten. This was costing us dropped positions. Digging through WebKit yielded what we needed to get around this. It turns out that on every tick where the page has a rendering update queued, Safari flushes the position without waiting. An empty requestAnimationFrame loop is all we need to do that. This bought us ~12.5% more reads, and brought us to 90 unique position reads per second. I sort of assumed I had hit the limit of the aforementioned IPC, but it turns out that ProMotion was just deciding that there’s no need to render at a refresh rate higher than 90 Hz. Squeezing out the last 30 Hz was trickier. A GPU-accelerated CSS animation lets the screen go to 120 Hz, but only while something is scrolling. So a tiny invisible scroller smooth-scrolls in the background, ready to boost us to the full ProMotion refresh rate whenever we need it. Of course, we don’t want the display pegging to 120 Hz the entire time, so we reserve all the tricks we used to get there for times we expect animations to occur: touch events, scroll-derived animations, etc. If the interaction you’re building doesn’t need momentum, rubber banding, or snapping, you can forego them entirely and just use a passive touchmove listener on the controller which fires at the full 120 Hz. Just like that, we’re receiving updates from the controller at a full 120 Hz! Drag the grid below to see. One issue remains. scrollTop and scrollLeft are rounded to the nearest integer even though iOS scrolls with sub-point precision. Easy fix, thankfully. We just scale the scrollable surface up by the device pixel ratio, then its container back down by its reciprocal. If you want to use the viewport itself as a controller, you can choose to invasively set the initial-scale in the same way, but this comes with some caveats. You’ll have to scale units by the DPR, disable text autosizing, and manually scale safe areas. You’ll also get tiny text-selection indicators. All trade-offs, but by no means required. From here on out, I’ll refer to these scrolling grids as “controllers”, because they act exactly like one. All we have to do is make one invisible and lay it over where we want to read high-frequency input. Note that the page itself can also be a controller, but Safari will throttle reported scroll positions to 10 Hz during the URL bar resize that happens when you change scroll direction. WebKit skips this if we give the page a scroll-driven animation that animates a non-GPU-accelerated attribute. I went with transitioning between two transparent colours for this page. Breaking the 60 FPS Render Barrier Now we get high-frequency input, but the DOM still only updates 60 times a second, so if we tried to leverage it as it stands, we’d just be updating a value twice for every frame that’s drawn. The user would get no benefit. The vast majority of dragging interactions are already covered by our controllers, and predefined animations are covered by CSS animations. But what about more complicated interactions? What about computation-derived layouts? What about shaders? Ask your search engine or AI of choice today “How to render canvas content on iOS at 120 Hz without feature flag?” and it will respond that this is a fundamental impossibility in iOS Safari. Even WebKit’s own bug tracker is full of people asking for it. Ink & Switch, game-engine makers. People even cite Capacitor & Tauri as resorting to private APIs. Asking Google yields the following preamble. There is no public web API or standard JavaScript workaround to force HTML5