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.
What an incredible post. Not only the bypass , but the method of hacking through WebKit source to find UX workarounds.
show comments
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.
show comments
andai
That glass effect is very cool but very distracting.
There's a "hide scroll tracker" toggle in the hamburger menu which hides it.
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.
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.
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.
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!
show comments
andai
That isometric scrolling thing is nested, wtf! That's amazing.
doug_durham
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.
show comments
smcleod
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.
normcu
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.
show comments
marmarama
Interestingly the difference in smoothness is also noticeable on Android Chrome on a 120fps display.
iniekaas
This kinda felt good.
ghrl
Just yesterday I watched Zed's talk on porting GPUI to the browser for Delta and they were talking about the same limitation.
wiradikusuma
I wonder if Flutter apps (targeting web) can get this "for free" if the framework adopt this approach.
2001zhaozhao
Wow very useful for my webgame! Apple pls don't notice
show comments
troupo
> 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.
show comments
CGamesPlay
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.
show comments
jkahrs595
> If you’re on iOS Safari
I am.
> you’ll immediately be able to tell which is which
I cannot. lol
show comments
shortercode
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.
pjmlp
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.
show comments
__alexs
My phone battery is crying just looking at this.
giorgiogamba
this is what we need
wodenokoto
> 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
show comments
throwaway63467
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.
Rodmine
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.
show comments
SV_BubbleTime
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.
show comments
nanapipirara
Please keep liquid glass out of websites… It is very distracting and useless.
show comments
hnlmorg
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
Still waiting for a Rust framework which can replace Flutter for Android and iOS development
show comments
smolder
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
"Apple" should instead be named "Asshole", this describes their approach to web apps well..
catlifeonmars
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
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
What an incredible post. Not only the bypass , but the method of hacking through WebKit source to find UX workarounds.
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.
That glass effect is very cool but very distracting.
There's a "hide scroll tracker" toggle in the hamburger menu which hides it.
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.
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.
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.
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!
That isometric scrolling thing is nested, wtf! That's amazing.
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.
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.
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.
Interestingly the difference in smoothness is also noticeable on Android Chrome on a 120fps display.
This kinda felt good.
Just yesterday I watched Zed's talk on porting GPUI to the browser for Delta and they were talking about the same limitation.
I wonder if Flutter apps (targeting web) can get this "for free" if the framework adopt this approach.
Wow very useful for my webgame! Apple pls don't notice
> 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.
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.
> If you’re on iOS Safari
I am.
> you’ll immediately be able to tell which is which
I cannot. lol
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.
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.
My phone battery is crying just looking at this.
this is what we need
> 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
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.
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.
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.
Please keep liquid glass out of websites… It is very distracting and useless.
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.
Still waiting for a Rust framework which can replace Flutter for Android and iOS development
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.
"Apple" should instead be named "Asshole", this describes their approach to web apps well..
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