125 comments

  • ksec 9 hours ago

    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

    • maelito 5 hours ago

      Here's a blog post explaining that a full map navigation mode is completely on the Web. https://cartes.app/blog/navigation-mode

      We've also switched a few months ago to a CSS bottom sheet, it's way better than the previous javascript version.

  • afavour 6 hours ago

    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.

    • kmeisthax 4 hours ago

      Web browsers composite layers just like CoreAnimation, and the browser ostensibly knows how big each element is. Seems like they could invent some kind of heuristic for the web just like they ostensibly already have for UIKit.

      • afavour 4 hours ago

        I don't think the UIKit heuristic is that intelligent, it's simply "is this a transition between two view controllers". Again, the lack of any formalised notion of "root views" or whatever on the web would be a blocker here I think. That said I'd be curious what happens with the View Transitions API, since it's about as close as you'll get to that.

      • Me1000 an hour ago

        Safari actually does literally use CoreAnimation to composite web pages.

      • NewLogic 4 hours ago

        That will only happen if governments enforce anti trust to include web as a type of third-party app store.

  • srcreigh 14 hours ago

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

  • andai 10 hours ago

    That glass effect is very cool but very distracting.

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

    • freak42 4 hours ago

      It's very cool and very distracting but mostly very unnecessary.

    • nabeards 2 hours ago

      It’s essentially the demo, if you read TFA.

  • derangedHorse 6 hours ago

    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.

    • lelandfe 3 hours ago

      The only thing I could tell on my iPhone is that the second one can be flicked, whereas the first stops scrolling the moment your finger’s lifted.

    • alain94040 3 hours ago

      Same. I actually see no difference between the two, I have no idea what everyone is raving about. I don't know if it's because I didn't enable some setting on my phone, or because I'm just not sensitive to whatever this is trying to show me.

  • lucideer 8 hours ago

    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.

    • ridafkih 7 hours ago

      Did you mean the OffscreenCanvas is significantly worse? What device are you using if you don't mind me asking?

      • FLHerne 6 hours ago

        On my Pixel 9, the scrollarea 'snaps' to pure vertical or horizontal scrolling when the movement is within a few degrees of those.

        That would be desirable in the normal use case of scrolling through content, but in this application causes the item dragging to be erratic and not follow my finger reliably.

        • ridafkih 6 hours ago

          Yeah, this is a CSS property. Let me toss it on really quickly!

      • jeroenhd 7 hours ago

        Tested this on my Pixel 9 Pro with Firefox and Chrome.

        The "improved" canvas seems to lose tracking with my finger. It's perfectly smooth (although both seem to be?), but at the end of a little wiggle motion, the square is no lunger underneath my finger.

        This also makes the glass-pill-drag control look weird, because I expect the pill to be dragged along further than it actually ends up being.

        The effect is much more pronounced on Firefox, but scrolling feels weird and off in Chrome as well. I also don't even know if you need this hack to work around the frame rate issue on Android.

        I recorded my screen with the touch tracing feature enabled: https://bijlage.zip/e218ea6b-389f-4ac0-9e3c-c1f45624e05f.mp4

        • ridafkih 6 hours ago

          If you get the chance, let me know if it's fixed now. c: Unfortunately cannot reproduce it on any of my Android devices, including a Google Pixel 9, but I had a hunch.

          • jeroenhd 2 hours ago

            It seems to have gotten a bit worse on Firefox, unfortunately. Chrome seems to work just as fine, though.

  • petrichorko 10 hours ago

    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.

  • andai 10 hours ago

    That isometric scrolling thing is nested, wtf! That's amazing.

  • doug_durham 13 hours ago

    On an iPad the compositor loses track of the cursor position as you drag things. The 60 fps javascript approach keeps everything locked. It seems like there is more work to be done.

    • ridafkih 12 hours ago

      Do you mind if I ask what model iPad & version of iOS you were on?

  • bruce343434 7 hours ago

    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!

    • rmccue 6 hours ago

      Just loading the page at all freezes the tab in Firefox for me.

  • normcu 11 hours ago

    Since I own a iphone 12 and have a 60hz display, I cant apply any hack related to the screen refresh rate for now... but I liked this post and if I upgrade to a newer model in the future, I'll try.

    • raddan 6 hours ago

      Oh, ha ha. That explains why I couldn’t see any difference.

  • ghrl 8 hours ago

    Just yesterday I watched Zed's talk on porting GPUI to the browser for Delta and they were talking about the same limitation.

  • smcleod 7 hours ago

    By flip "Prefer Page Rendering Updates near 60fps" does the author mean turn it on, or turn it off? I'd assume on but that would suggest limiting pages to 60fps and it's the default setting in iOS 27.

  • whiteboardr an hour ago

    Love the State Machine.

  • iniekaas 14 hours ago

    This kinda felt good.

  • marmarama 7 hours ago

    Interestingly the difference in smoothness is also noticeable on Android Chrome on a 120fps display.

  • wiradikusuma 9 hours ago

    I wonder if Flutter apps (targeting web) can get this "for free" if the framework adopt this approach.

  • 2001zhaozhao 12 hours ago

    Wow very useful for my webgame! Apple pls don't notice

    • andai 10 hours ago

      What kind of game are you working on?

  • f8ght 5 hours ago

    most people neither care nor need or want apple ui animations though

  • troupo 10 hours ago

    > If you’re on iOS Safari, you’ll immediately be able to tell which

    I had to scroll multiple times to see the difference.

    While the effort is commendable, I feel it's largely wasted.

    • ipsento606 5 hours ago

      I had to concentrate incredibly hard to notice any difference, and even then, I still think there's a chance I'm imagining it

    • phoghed 4 hours ago

      The difference is definitely noticeable, you’d be able to tell easily on a larger surface, like a map scrolling, just like you can see the diff scrolling around home screens if you side by side with a 60Hz iPhone.

      • troupo 3 hours ago

        People in the comments say it could be noticeable on something like iPhone 13.

        I have hard time noticing any difference in the examples on iPhone 16 Pro

    • trumbitta2 8 hours ago

      Same. Only I never noticed any difference on my iPhone 15 Pro.

  • wodenokoto 10 hours ago

    > 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.

    No. The difference has nothing to do with refresh rate. They move differently using different logic. I can only tell them apart because one has inertia and keeps moving after release. If I keep my thumb down they are the same.

    IPhone 17, iOS 26

    • ridafkih 10 hours ago

      Curious, can you tell the difference if you turn on Low Power Mode? The one on the left will drop to 30 Hz while the one on the rate will pin to the device refresh rate of 60 Hz. I am starting to think some people genuinely can't tell the difference between 60 Hz and 120 Hz.

      • ipsento606 5 hours ago

        I couldn't tell the difference between 60 and 120, but yes, turning on low power mode made the difference very obvious to me.

      • guardiandemon 7 hours ago

        Too many years playing vidya so I can tell. Also notice weird frame rates on OLED TV sometimes.

        Midrange Android phones have had 120hz screens for years! Although I'll be the first to admit that specs aren't everything.

      • true_religion 9 hours ago

        I honestly can't. I can barely tell the difference between 30Hz and 60Hz if the action isn't high speed.

      • latexr 9 hours ago

        > I am starting to think some people genuinely can't tell the difference between 60 Hz and 120 Hz.

        That’s certain. Lots of people also can’t perceive the soap opera effect, even if you turn off frame interpolation on their TV and show them the before and after.

        https://en.wikipedia.org/wiki/Soap_opera_effect

    • j_leboulanger 9 hours ago

      Agreed, if I leave my finger on the screen there is absolutely no difference.

      If I lift my finger then I see the inertia, but that's the only difference.

    • mock-possum 10 hours ago

      Yeah same, they both act exactly the same, except one you can fling out of bounds. I’d never know there was supposed to be some sort of magical ‘native feel’ to one of them.

      iPhone SE 2nd gen, ios 27.2.1

      • latexr 9 hours ago

        Your iPhone, like mine, has a 60Hz screen, so it physically can’t show the supposed difference.

  • zach_moore 4 hours ago

    love this

  • CGamesPlay 15 hours ago

    That "liquid glass" scroll tracker widget is the best ocular migraine simulator I've ever encountered. If you've ever wanted to know what an ocular migraine looks like, look a few inches away from that thing and scroll the page.

    • jakespencer 14 hours ago

      Oh wow, you are right. I had to click away because I started feeling sick by association.

      • trymas 12 hours ago

        Same, 5 seconds after scrolling and seeing that effect gave me a sense of sea-sickness and migraine (as you well said, probably just by association).

      • ridafkih 12 hours ago

        Author here, I've added an option to hide it under the menu for future ocular migraine havers!

        • freak42 4 hours ago

          but why is it there at all in the first place?

          • phoghed 3 hours ago

            Because it’s cool. I don’t see the problem as long as there’s an option for the frail or disabled to remove it.

            I’d suggest that this particular object respect the prefers-reduced-motion setting if it doesn’t already.

    • ale42 10 hours ago

      I might have found it cool, if it has at least some hint of a material. There, is perfectly transparent black distortions on a black background, so very weird and very distracting, whatever purpose it serves.

    • JohnTHaller 14 hours ago

      This is accurate. Had a migraine aura last week.

  • jkahrs595 14 hours ago

    > If you’re on iOS Safari

    I am.

    > you’ll immediately be able to tell which is which

    I cannot. lol

    • sitharus 14 hours ago

      Same, looks identical to me. Tried several different motions as well but can’t pick which is which.

      • ckaik 12 hours ago

        Same as well.

        I'm on an iPhone with ProMotion and both of these are running at 120 fps here. I thought I was going mad, so I had to dig into it a little, even if it's just to provide op with more information.

        As far as I could tell (Settings.app's Search seems useless) there are three settings you could engage to influence the refresh rate of websites in Safari:

        - Low Power Mode

        - "Prefer Rendering Updates at 60Hz" Feature Flag in Safari - which is enabled by default

        - Limit Refresh Rate in Accessibility -> Motion

        I didn't try Low Power Mode, but the Accessibility setting did the trick for me and I was immediately able to see the difference.

        Not sure what's causing this. I'm on an iPhone 15 Pro Max running iOS 27.0.1.

    • kalev 11 hours ago

      Only iPhone 13 Pro and Pro Max models and newer support adaptive refresh rates of up to 120Hz, which are the devices this post is specifically aimed at.

    • MBCook 14 hours ago

      Not all iOS devices have 120 Hz screens.

      • hnlmorg 10 hours ago

        I’m on the Duo and I didn’t notice anything beyond what could be reasonably argued as a placebo effect.

        • ridafkih 10 hours ago

          If you shake your hand in front of a strobe light, you should be able to count the afterimages, as if your hand was copied into multiple places in the same instant.

          Same goes here. If you go to the first two grids, and you shake the square until you can count the afterimages, check to see if one shows more afterimages than the other despite the same speed.

          If your device is genuinely limited to 60Hz for any reason or another, you'll see a little warning icon on the top-right.

          It might be easier in Low Power Mode, as well. This'll reduce the requestAnimationFrame loop to 30 Hz, but the higher refresh rate examples in this post will show at 60 Hz.

          • hnlmorg 6 hours ago

            If it takes that much effort then what’s the actual benefit of this vs the trade offs (battery life, more complicated code base and all the edge case rendering glitches)?

            • ridafkih a minute ago

              It's a series of learnings, rather than an actual step-by-step on making a website feel native on iOS Safari. A good example for this would be a drawing application isolating the controller idea to get better responsiveness when someone draws, or a mobile game PWA using the refresh rate boosting to make the game feel better to players.

              I've been making websites for over a decade now, and yet even with AI in the loop, the blog post and demos took almost 5 days to become publishable, and another 4 to get the performance in a place where I was happy. This is because of the hybrid approach, and needing to build the entire page around that fact.

              Would I ever use liquid glass in an actual website? I would not, and certainly not as I did here with an annoying `_UILiquidLensView`-inspired scroll indicator. Do I think it serves as a good illustration/example for high-refresh rate websites on mobile? Absolutely!

    • convivialdingo 13 hours ago

      My test was to rapidly wiggle the boxes up and down and I could see 4 shadows on one and 8 on the other. Definitely a difference.

    • Nursie 14 hours ago

      Likewise. Maybe it’s my old-man (47) eyes, but I saw no difference!

    • Barbing 12 hours ago

      They were night and day. iPhone 17 Pro, iOS 27 (not in low power mode)

      • jkahrs595 3 hours ago

        obviously not, look at all the comments in here stating otherwise

        i have a 15 pro max and a new ipad, no low power mode, frame rate is not limited in accessibility settings...

        it's extremely subtle if percievable at all.

  • shortercode 9 hours ago

    It’s fun that Fable completely fails on this. OffscreenCanvas is _designed_ to bypass paint and go straight to the compositor and it’s not a new feature. It’s one of the really great things about OffscreenCanvas. Primarily it’s to allow a worker to update the canvas without worrying about the main context being blocked by user interaction, layout, paint, etc.

    I couldn’t have told you if this would have triggered the compositor at 120Hz but if anything worked it would be this.

  • throwaway2037 5 hours ago

    I need to ask from the perspective of normie users: Do they care about greater than 60 FPS limits in web apps? I find it hard to believe.

  • pjmlp 9 hours ago

    To me it sounds like discussing the purity of audio sound quality when using gold coated audio cables for those speakers that cost as much as a house, connected to a top end turn tablet.

    Interesting from technical point of view, could not care less for all practical purposes.

    • ubercow13 7 hours ago

      The difference between 60 and 120fps is nothing like the placebo level, completely non-existent differences between many expensive audio cables.

      • pjmlp 6 hours ago

        So far it seems a waste of money to buy 120fps capable devices.

        • ubercow13 6 hours ago

          To each their own. It's probably the biggest upgrade in overall computer and device experience in the last decades in my opinion, along with SSDs.

  • unethical_ban 2 hours ago

    How is this the first time I'm learning that 60fps is a cap for web browsing in iOS?

    Not that I'm an Apple junkie, but this is like learning Ford caps its trucks at 100HP if you swap rims, or something.

    If I bought an iPhone with high refresh rate, took it home and realized my browser (the main app I use on a phone) is locked at half the device's capacity, I would immediately get a refund.

  • __alexs 8 hours ago

    My phone battery is crying just looking at this.

  • Rodmine 11 hours ago

    Safari is one of the greatest pieces of niche applications. It has to be made exactly good enough for web browsing that users don’t feel like downloading an alternative but also exactly bad enough for building web apps on it so that developers are forced to create a native iOS app.

    • Alifatisk 11 hours ago

      > It has to be made exactly good enough for web browsing that users don’t feel like downloading an alternative

      Is there really any alternatives? I use FF on iOS, but its still wrapped in Webkit, not Gecko.

    • kevincox 6 hours ago

      There are no alternatives on iOS. Apple doesn't allow it.

      But yes, Safari seems to be made just bad enough that people are forced to make apps even for things that don't benefit from being apps.

    • AlexandrB 5 hours ago

      Believe it or not I use Safari willingly and happily on macOS. No other browser is as easy on the battery and the lack of some web features is a selling point for me. I don't want to give websites access to hardware peripherals. Ever. Thank you.

    • rimliu 11 hours ago

      "Forced".

      As someone proficient with both ways of building things: if you do know native development (and I mean "know", not "dabbled for a couple of hours") you'd need really to force me to do apps the other way.

      • Rodmine 3 hours ago

        To believe that I would have to believe that iCucks have agency.

  • throwaway63467 10 hours ago

    Is this the same on other browsers or just a WebKit thing? Apple is know for deliberately holding back web technologies in their browser to make their apps look better in comparison, this might just be another example.

  • giorgiogamba 7 hours ago

    this is what we need

  • SV_BubbleTime 15 hours ago

    I have nothing to add on IOS or a 60fps website cap… but I did notice the “glass” UI element in the top left corner and how much more glass looking that is than whatever Apple tried to do. The chromatic aberrations are a nice touch.

    • marcellus23 15 hours ago

      Liquid Glass also has chromatic aberration. That sample on the website is actually pretty much exactly what certain configurations of Liquid Glass looks like.

  • nanapipirara 12 hours ago

    Please keep liquid glass out of websites… It is very distracting and useless.

    • matsemann 12 hours ago

      I guess in this post it served a purpose, it was the example of how a full site could react in 120 Hz to inputs.

      But man, is that effect how annoying it is to use iOS now?

      • leokennis 11 hours ago

        I noticed that glass thing in the top right immediately on my iPhone.

        Especially because since iOS27, there is a slider to put Liquid Glass into a less transparent look [1] so the glass pill on this site stood out immediately as "the bad old iOS26 days" of Liquid Glass.

        With the newly possible iOS27 look, I'd say it is a perfect blend of "looks nice" and "still readable".

        [1] https://i.imgur.com/6cRn9Gs.jpeg

        • hnlmorg 10 hours ago

          Agreed. This feels like one of the few times apple have listened to customer feedback.

          But then it was also such a massive own goal in terms of design it would have been ridiculous not to (even more ridiculous than the fact they ever released their platforms that way to begin with!)

          • steve1977 10 hours ago

            It's probably as close as we can get to Apple admitting they were wrong.

      • ridafkih 12 hours ago

        You're the first person who has made that criticism that actually understood why glass was used for the demo page.

        Every "liquid glass on web" library in existence falls short because it can't keep up the compositor refresh rate. Simple as that. Part of it was also bringing native UI to the web because I figured it'd be quite jarring to see a convincingly native element in a website for those familiar with web development.

        As for using iOS, Apple doesn't use the glass effect (`_UILiquidLensView`) I used for the progress/scroll indicator outside of a very select few use-cases because (as is the case on this website) if it's not positioned squarely in the centre of your macula, the intensity of the refraction combined with the chromatic aberration makes it so that it appears flashy and distracting. I accepted it for the sake of the demo.

      • Barbing 12 hours ago

        I don’t think so. The upper left icon was unusually distracting (iOS 27).

    • grougnax 4 hours ago

      It will be everywhere, sorry

  • hnlmorg 10 hours ago

    The white square glitches out on latest iOS iPhone Duo.

    But my advice here is just don’t do it. Respect your users battery life. If you want a native feel then compile to native code.

  • faangguyindia 13 hours ago

    Still waiting for a Rust framework which can replace Flutter for Android and iOS development

    • allthetime 2 hours ago

      Not sure why you’d avoid react native in 2026. And if you need more performance (most don’t) just go native. It’s almost trivial to maintain separate code bases with AI. You can use a front/back split keeping UI in OS-land and doing other work with shared C++, etc

    • Gander5739 6 hours ago
    • 2001zhaozhao 12 hours ago

      I don't know about Rust framework, but Kotlin Multiplatform has always been a good option compared to Flutter. It has good interop so you can build actual native iOS UI while sharing business logic in Kotlin, or you can just build the UI in Compose Multiplatform (decently fast on iOS, literally native on Android which is the more important platform because Androids are slower).

    • zote 12 hours ago
  • smolder 13 hours ago

    The unfortunate thing is that measuring framerate is another vector that lets you de-anonymize people, and shitty companies that operate what's left of the www all use advanced methods of de-anonymization so they can advertise or sell that shit to palantir. And governments are planning to make it illegal to have a website that isn't a spying apparatus. That's where we're at. The web is not going to be "free as in freedom" for much longer if we let trends continue. Stallman was right, outside of eating toenails or whatever.

  • zb3 13 hours ago

    "Apple" should instead be named "Asshole", this describes their approach to web apps well..

  • catlifeonmars 15 hours ago

    60fps is perfectly serviceable. That first example is updating _at most_ 60fps and that phrase is doing a lot of heavy lifting. What you see is <60fps jerks. This article feels disingenuous

    • Rohansi 14 hours ago

      Sure, dropping frames is worse, but why would it ever be acceptable for an app to cap itself at half the screen's refresh rate? Especially when the difference between 60 and 120fps is very noticeable?

      • mrob 6 hours ago

        Some monitors/OSes default to 60Hz even if the monitor is capable of higher. I've seen posts by people who claimed to have run their fast monitor at 60Hz by accident because they didn't know this.

        And a fast monitor needs a fast mouse to take full advantage of it. USB mouse protocol does not inform the mouse of the monitor's refresh phase/frequency, so the mouse has to run asynchronously. You need a high mouse sampling rate to avoid noticeable beat patterns caused by this discrepancy. Non-gaming mice sometimes only support 125Hz, which isn't even enough for 60Hz monitors. Common gaming mice support 1000Hz, which is enough for perceptibly flawless mouse control at 120Hz, but for 240Hz you need a high-end gaming mouse with higher sampling rate.

        • Rohansi 3 hours ago

          > I've seen posts by people who claimed to have run their fast monitor at 60Hz by accident because they didn't know this.

          This is far more understandable because that makes everything run at 60Hz. The article here is a scenario where you have 60Hz content mixed in with 120Hz on the same screen. But still, people who are accustomed to high refresh rate displays would be able to immediately notice.

          > And a fast monitor needs a fast mouse to take full advantage of it.

          Ideally, yes, but you don't need a high polling rate mouse to be able to notice the difference.

      • bigstrat2003 13 hours ago

        > Especially when the difference between 60 and 120fps is very noticeable?

        It's not really noticeable in my opinion. Hell, even 30 to 60 FPS isn't noticeable.

        • arcanemachiner 13 hours ago

          There are two different kinds of people...

        • holoduke 12 hours ago

          Oh it is. Going from 60 to 120 is a big difference. Even from 120 to 180 or 240 is a big difference. Everyone will notice it. Does it affect your productivity? Probably not.

          • mrob 6 hours ago

            60 to 120 is a big difference. 120 to 240 is nice to have but not as dramatic. Considering how unpleasant it is to do anything on a mobile device because of how much worse a touchscreen is than keyboard and mouse, I think it's reasonable to cap at 120fps or even 60fps if it saves battery. By using a mobile device you're already accepting an inferior user experience.

        • r_lee 12 hours ago

          are you just pretending or...? you can immediately notice when you scroll up and down

          • swiftcoder 11 hours ago

            As I understand it, a pretty significant percentage of people can't really see the difference between 60 and 120hz. I personally only notice it in a few edge cases

            • r_lee 10 hours ago

              I mean, 30 and hz, not noticing that is pretty surprising

              and 60 vs 120hz, you may not notice it immediately but when you e.g. move a window around on a monitor you should be able to feel it, at least for me it's instantly noticeable, but you may not notice it if you're not switching between or aren't moving things around

    • ridafkih 11 hours ago

      By "first example," do you mean the glass element on the top-left, or do you mean the first pair of grids?

      Low to mid tier devices might get hitches on the glass elements since the glass runs on the GPU during scrolls. If you mean the actual first demo and the one on the right is rendering below 120 Hz, your device is simply not capable of it.

    • sgt 11 hours ago

      Not sure why you are getting downvoted. The problem is NOT that it's capped to 60fps, it's the yanks and jerks. Which I guess could be a web platform or Safari issue, but 60fps in itself is smooth on native apps.

      • actionfromafar 5 hours ago

        Thanks, either the two of us are crazy... or not.