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

291 points · 106 comments on HN · read original →

Points and comments are a snapshot, not live.

A developer bypasses iOS Safari's 60 FPS cap using scroll-position controllers and OffscreenCanvas for 120 Hz input and rendering.

The author describes techniques to overcome iOS Safari's default 60 FPS rendering limit on 120 Hz displays. By repurposing scrollable elements as input controllers, they read scroll positions at 120 Hz via recursive MessageChannel, setTimeout, and requestAnimationFrame tricks. For rendering, they use OffscreenCanvas's `transferControlToOffscreen` to push frames without waiting for the main rendering pass, achieving 120 FPS canvas updates. The approach was demonstrated with a Liquid Glass tab bar component that tracks inputs at device refresh rate. Benchmark on iPhone 18 Pro showed 118 FPS average with the controller method versus steady 60 FPS with pointer events. The author notes the technique may break if Apple patches OffscreenCanvas behavior.

What commenters are saying

Commenters were split. Some found the Liquid Glass demo caused ocular migraine symptoms, prompting the author to add a hide option. Many could not perceive the 60 vs 120 FPS difference on iOS, especially on non-ProMotion devices, though others saw clear afterimage differences when shaking the demo squares. A few criticized the article as disingenuous, arguing the jerky 60 FPS demo was the real problem, not the frame rate cap itself. One commenter noted that on iPad, the compositor-based approach lost track of cursor position during drags, while JavaScript events remained accurate.