One Developer Reached 118 FPS in iOS Safari by Reading Scroll Position, and WebKit Still Defaults to 60
Software / news
One Developer Reached 118 FPS in iOS Safari by Reading Scroll Position, and WebKit Still Defaults to 60
Rida F'kih's technique avoids touch events entirely; WebKit's own bug tracker shows the 60 FPS cap is a default flag, not a hardware limit.

Rida F'kih says he held 118 frames per second in iOS Safari over a three-second finger drag, where touch and pointer events stayed flat at 60. His method skips touch events and reads the position of invisible scroll containers instead.
The technique is in a post dated November 20. The post does not give iOS or Safari version numbers, and the 118 FPS figure is the author's own measurement, recorded on an iPhone 18 Pro filmed at 240 FPS.
- Pointer events60 FPS
- Scroll controllers118 FPS
Source: Rida F'kih, Bypassing iOS Safari's 60 FPS Limit, November 20, 2026
Where the 60 FPS cap comes from
F'kih writes that WebKit holds requestAnimationFrame to 60 Hz on 120 Hz screens unless the "Prefer Page Rendering Updates near 60fps" flag is turned off. Touch and pointer events follow the same rate. During momentum scrolling on an iPhone, scroll events arrived only 5 to 26 times a second in his measurements.
The flag has a history in WebKit's bug tracker. Bug 272165 was filed on April 4, 2024, reporting that 120 Hz requestAnimationFrame did not work on iPhone Pros, and was marked fixed after iOS 18.0 developer beta 2. When a user reported in September 2024 that iPhone 16 Pros were stuck at 60 Hz, bug 280183 was closed as invalid. The reporter had left the flag enabled, because flags do not carry over when a device is transferred.
WebKit engineer Antoine Quint tested an iPhone 14 Pro on the iOS 18 release candidate in that thread. It reached 120 fps with the flag off and stayed at 60 with it on, which is the default. So a site cannot assume 120 Hz on any user's phone through the flag, and that default is what F'kih's workaround sidesteps.
How the scroll controller works
Invisible scroll containers let the compositor handle touch physics, and the page reads scrollTop and scrollLeft synchronously at high frequency. Reading those positions fast was the hard part.
| Reading method | Result |
|---|---|
Recursive MessageChannel | About 50,000 reads a second, only 80 distinct values |
Atomics | About 80 distinct positions a second, needs SharedArrayBuffer and COOP/COEP headers |
MessageChannel with setTimeout phase-locked to vsync | 80 reads a second |
Same, plus an empty requestAnimationFrame loop | About 90 unique reads a second |
The Atomics route breaks cross-origin assets because of the headers it needs. The empty animation-frame loop makes Safari flush scroll positions without waiting for acknowledgement, which produced the last gain.
For drawing, transferControlToOffscreen creates an OffscreenCanvas. By the author's reading of WebKit, frames pushed from it do not wait for the next main-thread rendering pass. His demo uses that path for a Liquid Glass tab bar and a page-level glass effect through WebGL shaders fed by OffscreenCanvas workers.
What it costs and what could break
Using the viewport as a controller means changing initial-scale, scaling units by the device pixel ratio, disabling text autosizing and scaling safe areas by hand. Text-selection handles become tiny. Safari throttles page scroll reports to 10 Hz while the URL bar resizes, unless a scroll-driven animation on a property that is not GPU-accelerated is present.
F'kih also says the result is at Apple's discretion. If WebKit made the OffscreenCanvas placeholder wait for the main-thread render pass, the trick would stop working. He would prefer that Apple enable ProMotion for websites natively, and Apple has not said whether it will. Other browser stories on the site include Ladybird's first alpha and Apple's removal of FSNotes from EU app stores.
Sources
More in Software
- 01Hex.pm Says an Attacker Ran Commands on Six Web Servers on Nov. 23, and Password Hashes May Be ExposedThe Elixir and Erlang package registry traced the breach to a 2016 decoder change, found no tampered packages, and is asking every user to change passwords and reset 2FA.
- 02OpenLaszlo Co-Founder David Temkin Releases Declare, an MIT UI Language for LLMs, With Single-Run NumbersThe page claims 1,279 lines against React's 2,666 for the same ticket app, and labels its own evaluation "not yet a benchmark."
- 03A Lean 4 Check of Clojure 1.12.7 Found 17 Bugs the Author Could Not Find in Any Upstream TicketNaoya Yamashita combined a theorem prover with 3 million differential-test operations; the Clojure tracker already shows how slowly some adjacent bugs move.
- 04StarSling's Agents Rewrite GitHub Actions Workflows, and Commenters Ask What Gets DeletedThe YC P25 company reports 3.9x to 36.4x speedups on open-source repos. Every figure is its own, and the thread leaves test weakening unanswered.