Bypassing iOS Safari's 60 FPS Limit to Build Web Applications That Feel Native
- ksec - 19110 sekunder sedanI 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.
- afavour - 8143 sekunder sedanIn 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.
- srcreigh - 36296 sekunder sedanWhat an incredible post. Not only the bypass , but the method of hacking through WebKit source to find UX workarounds.
- lucideer - 14716 sekunder sedanHaven'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.
- andai - 24441 sekunder sedanThat glass effect is very cool but very distracting.
There's a "hide scroll tracker" toggle in the hamburger menu which hides it.
- derangedHorse - 6980 sekunder sedanI 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.
- petrichorko - 22369 sekunder sedanAlso 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.
- zach_moore - 231 sekunder sedanlove this
- andai - 24307 sekunder sedanThat isometric scrolling thing is nested, wtf! That's amazing.
- doug_durham - 34537 sekunder sedanOn 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.
- bruce343434 - 11575 sekunder sedanWhen 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!
- smcleod - 11018 sekunder sedanBy 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.
- normcu - 24941 sekunder sedanSince 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.
- f8ght - 3356 sekunder sedanmost people neither care nor need or want apple ui animations though
- marmarama - 11168 sekunder sedanInterestingly the difference in smoothness is also noticeable on Android Chrome on a 120fps display.
- iniekaas - 39313 sekunder sedanThis kinda felt good.
- ghrl - 17514 sekunder sedanJust yesterday I watched Zed's talk on porting GPUI to the browser for Delta and they were talking about the same limitation.
- wiradikusuma - 18603 sekunder sedanI wonder if Flutter apps (targeting web) can get this "for free" if the framework adopt this approach.
- 2001zhaozhao - 31631 sekunder sedanWow very useful for my webgame! Apple pls don't notice
- troupo - 24905 sekunder sedan> 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.
- CGamesPlay - 40703 sekunder sedanThat "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.
- throwaway2037 - 4295 sekunder sedanI 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.
- jkahrs595 - 38366 sekunder sedan> If you’re on iOS Safari
I am.
> you’ll immediately be able to tell which is which
I cannot. lol
- shortercode - 18394 sekunder sedanIt’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.
- pjmlp - 20638 sekunder sedanTo 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.
- __alexs - 17652 sekunder sedanMy phone battery is crying just looking at this.
- wodenokoto - 22290 sekunder sedan> 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
- giorgiogamba - 11046 sekunder sedanthis is what we need
- throwaway63467 - 23040 sekunder sedanIs 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.
- Rodmine - 27774 sekunder sedanSafari 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.
- SV_BubbleTime - 40667 sekunder sedanI 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.
- - 32482 sekunder sedan
- onewin202602 - 2137 sekunder sedan[flagged]
- nanapipirara - 31105 sekunder sedanPlease keep liquid glass out of websites… It is very distracting and useless.
- thebytesbuilder - 7900 sekunder sedan[flagged]
- hnlmorg - 24870 sekunder sedanThe 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 - 33977 sekunder sedanStill waiting for a Rust framework which can replace Flutter for Android and iOS development
- smolder - 32324 sekunder sedanThe 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 - 33967 sekunder sedan"Apple" should instead be named "Asshole", this describes their approach to web apps well..
- catlifeonmars - 39866 sekunder sedan60fps 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
Nördnytt! 🤓