This Developer Broke iOS Safari's 60 FPS Ceiling on Canvas

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

This Developer Broke iOS Safari's 60 FPS Ceiling on Canvas

iOS Safari caps requestAnimationFrame and canvas rendering at 60 Hz even on 120 Hz screens, unless you flip a buried developer flag. Rida F'kih got around it: invisible scrollable "controllers" feed input at a full 120 Hz, and pushing frames through an OffscreenCanvas bypasses the rendering throttle entirely. The result is WebGL-driven Liquid Glass effects and a PWA clone of Ando's app that he kept mistaking for the native one.

In WebKit on iOS, if we create a canvas element and call transferControlToOffscreen, we get an OffscreenCanvas back. The original canvas element becomes a placeholder, and WebKit skips waiting for the next rendering pass when an OffscreenCanvas pushes a frame.
  1. ksec

    I thought the demo linked to twitter was much more impressive. [1] I can't believe that was web only and not native app. Absolutely blows my mind how far we have come. I know it is prototype and there are bounds to be some edge case still not polished but I think this is the first time ever Web has native app quality, and this is without much JavaScripts.

    [1]https://x.com/ridafkih/status/2122834693611819451

  2. derangedHorse

    I only saw a subtle difference in the first example between the scrollable square canvases, but I’m sure there are cases where it would be more noticeable. Nevertheless, this post was an interesting read.

  3. andai

    That glass effect is very cool but very distracting.

    There's a "hide scroll tracker" toggle in the hamburger menu which hides it.

  4. srcreigh

    What an incredible post. Not only the bypass , but the method of hacking through WebKit source to find UX workarounds.

  5. afavour

    In case you’re wondering “why isn’t 120fps enabled by default”: on the native side iOS selectively enables it for transitions that cover a lot of the screen. If you use SwiftUI or UIKit it’s done for you but there are switches on CAAnimation (IIRC) that control it.

    The web has no equivalent. So it’s all 120hz all the time, or not. And that would drain the battery more than Apple would like.

  6. lucideer

    Haven't had a chance yet to check this on iOS yet, but just to mention for those who only have access to iOS, I expected the disclaimer at the top of the page to imply that the differences between the demos would be imperceptible on Android. They aren't - the canvas is significantly worse.

    I guess this may be a worthy trade-off if you're confident your userbase is 100% iOS.

  7. petrichorko

    Also interesting thing is that I can use iPad’s trackpad to pan the scrollable area-based component, while the first one does nothing. Not sure if that’s related to just some disconnected JS callback, but it surprised me that it works well out of box. I use mine as a tiny laptop, and it bothers me to reach out and touch the screen on some websites that just ignore this input option.

  8. bruce343434

    When scrolling past the isometric scrolling thing in firefox, it crashes the tab. But this is a very cool article and even though I'm on linux desktop, the OffscreenCanvas technique is snappier and I will be adapting it. Thanks!

More from this day

2026-11-25