Rendered at 13:01:53 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
ksec 1 days 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.
We've also switched a few months ago to a CSS bottom sheet, it's way better than the previous javascript version.
afavour 1 days 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 22 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 22 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 19 hours ago [-]
Safari actually does literally use CoreAnimation to composite web pages.
NewLogic 22 hours ago [-]
That will only happen if governments enforce anti trust to include web as a type of third-party app store.
srcreigh 1 days ago [-]
What an incredible post. Not only the bypass , but the method of hacking through WebKit source to find UX workarounds.
throwaway63467 1 days ago [-]
[flagged]
samuria 1 days ago [-]
Can we see your write-up about a finding like this? Why be a downer just because it’s become easier?
Bishonen88 1 days ago [-]
In all honesty, any such blog post nowadays is less impressive than it would've been 5 years ago. While the OP could've stated that a bit differently, I think we all agree that it is enormously easier to do things like that with the help of AI's... Same story with beautiful websites/projects. 5 years ago, I would've devoured the source code of open source apps to learn how they pulled off some nice animation, have professional monorepo setups with various tools etc. while today - I just ask in plain english and can create the previously impossible while getting a coffee...
Not taking any shots at the article (not my niche of interest). Just stating a general observation.
gchamonlive 22 hours ago [-]
It's become a bit harder to get impressed, we have to look for things other than code. Today's become more important to know not only what to implement but what to leave out. It's very impressive nowadays for instance to study a project that's lean, concise and elegant.
StilesCrisis 21 hours ago [-]
Do you really want write-ups of "I asked Claude why WebKit didn't go fast, and it read through all the source?"
I agree with the above post: this is routine Claude behavior. If you ask it a question about implementation details, it'll acquire and read the source. If it can't do that, _it will disassemble the code_. I was surprised two months ago; now I'm used to it.
throw10920 9 hours ago [-]
Please don't respond to a shallow, low-effort criticism with another shallow, low-effort criticism, it just pushes HN further toward Reddit and encourages that behavior. Downvote instead.
onion2k 1 days ago [-]
You also have to know, or at least suspect, it's possible. And you need to know the language to prompt with. You need to understand the problem to solve even if AI does the solution. You need to be curious enough to give it a try...
AI can do the solution and the write up, but the impetus to try still has to come from a person.
23 hours ago [-]
walthamstow 1 days ago [-]
My dad had a great response to the phrase "anybody could have done that"
He'd say "well they fucking didn't, did they?"
guardiandemon 1 days ago [-]
Ha a wise man your dad!
andai 1 days 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 22 hours ago [-]
It's very cool and very distracting but mostly very unnecessary.
nabeards 20 hours ago [-]
It’s essentially the demo, if you read TFA.
t23414321 4 hours ago [-]
similar on Windows:
Direct Manipulation API which supports “absolute” transformations that are independent of line / row size, as well as asynchronous rendering (Windows8 API for touch-based scrolling) .. it’s possible to register a window as a Direct Manipulation consumer and receive the pixel-precise input events without involving the rendering parts of the API (however, that requires both compatible hardware and proper application support) like:
first, the driver tries to use Direct Manipulation API for “pixel-perfect” scrolling,
* then, if application doesn’t support the API (very few do), the driver tries to find and manipulate application scrollbar(s) directly (by sending WM_HSCROLL and WM_VSCROLL messages, like with legacy touchscreen panning), because, unlike the mouse wheel events, scrollbars can support pixel-precise deltas (this step might not work for widget toolkits that don’t use native scrollbars), *
finally, if there are neither the Direct Manipulation API, nor a suitable scrollbar available, the driver resorts to sending the high-resolution WM_MOUSEWHEEL messages.
Windows supports pixel-precise scrolling only in the combination of Precision Touchpad driver and Direct Manipulation API (yet Direct Manipulation is too all-encompassing and is never meant to used just for input).
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 1 days ago [-]
Did you mean the OffscreenCanvas is significantly worse? What device are you using if you don't mind me asking?
FLHerne 1 days 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 1 days ago [-]
Yeah, this is a CSS property. Let me toss it on really quickly!
jeroenhd 1 days 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.
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 20 hours ago [-]
It seems to have gotten a bit worse on Firefox, unfortunately. Chrome seems to work just as fine, though.
derangedHorse 24 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 21 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.
josteink 15 hours ago [-]
You need an iPhone Pro (which has a 120hz pro-motion display). Or a regular iPhone 16 or newer which also ships a 120hz display.
Earlier or lower tiers models only has a 60hz display and if you’re not seeing a difference, it’s because on your device there probably isn’t.
lelandfe 15 hours ago [-]
17 Pro used. It’s just not noticeable (to me).
pimlottc 15 hours ago [-]
I have an iPhone 14 Pro and couldn’t see a meaningful difference
alain94040 21 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.
ghostly_s 18 hours ago [-]
Maybe this is dependent in your hardware? My phone is a few gens behind (12), don't think it has a particularly fancy screen. I noticed no difference in the demos.
josteink 15 hours ago [-]
Only iPhone Pro models or regular iPhones since iPhone 16 has a 120hz display.
A iPhone 12 only has a 60hz display - so nothing in this article matters on your device.
petrichorko 1 days 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.
Kon5ole 15 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.”
I notice no difference, what should happen?
ajjenkins 15 hours ago [-]
The one on the left is “jankier” and the one on the right is smoother. Look carefully at the one on the left and you’ll see weird effects were the grid breaks and overlaps itself.
doug_durham 1 days 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 1 days ago [-]
Do you mind if I ask what model iPad & version of iOS you were on?
andai 1 days ago [-]
That isometric scrolling thing is nested, wtf! That's amazing.
normcu 1 days 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 1 days ago [-]
Oh, ha ha. That explains why I couldn’t see any difference.
bruce343434 1 days 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 24 hours ago [-]
Just loading the page at all freezes the tab in Firefox for me.
iniekaas 1 days ago [-]
This kinda felt good.
ghrl 1 days 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 1 days 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.
2001zhaozhao 1 days ago [-]
Wow very useful for my webgame! Apple pls don't notice
andai 1 days ago [-]
What kind of game are you working on?
2001zhaozhao 7 hours ago [-]
It's an FPS, so 120Hz on iOS Safari would help a boatload.
troupo 1 days 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 23 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 22 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 21 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 1 days ago [-]
Same. Only I never noticed any difference on my iPhone 15 Pro.
josteink 15 hours ago [-]
That might be cause the iPhone 15 Pro has an actual 120hz display where you can see this ;)
1 days ago [-]
marmarama 1 days ago [-]
Interestingly the difference in smoothness is also noticeable on Android Chrome on a 120fps display.
wiradikusuma 1 days ago [-]
I wonder if Flutter apps (targeting web) can get this "for free" if the framework adopt this approach.
shaurya0083 7 hours ago [-]
Nice
whiteboardr 20 hours ago [-]
Love the State Machine.
f8ght 23 hours ago [-]
most people neither care nor need or want apple ui animations though
wodenokoto 1 days 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 1 days 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.
ifwinterco 13 hours ago [-]
60Hz is already definitely close to the point of diminishing returns for a lot of people.
It's why the screen is 120Hz not 240Hz or 1200Hz after all, somewhere in the 60-120Hz range is "enough" and for a lot of people 120 is already only a minor benefit at best over 60
guardiandemon 1 days 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.
ipsento606 23 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.
true_religion 1 days ago [-]
I honestly can't. I can barely tell the difference between 30Hz and 60Hz if the action isn't high speed.
latexr 1 days 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.
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 1 days 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
1 days ago [-]
latexr 1 days ago [-]
Your iPhone, like mine, has a 60Hz screen, so it physically can’t show the supposed difference.
CGamesPlay 1 days 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 1 days ago [-]
Oh wow, you are right. I had to click away because I started feeling sick by association.
trymas 1 days 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 1 days ago [-]
Author here, I've added an option to hide it under the menu for future ocular migraine havers!
freak42 22 hours ago [-]
but why is it there at all in the first place?
phoghed 22 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 1 days 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 1 days ago [-]
This is accurate. Had a migraine aura last week.
jkahrs595 1 days ago [-]
> If you’re on iOS Safari
I am.
> you’ll immediately be able to tell which is which
I cannot. lol
sitharus 1 days ago [-]
Same, looks identical to me. Tried several different motions as well but can’t pick which is which.
ckaik 1 days 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.
MBCook 1 days ago [-]
Not all iOS devices have 120 Hz screens.
hnlmorg 1 days ago [-]
I’m on the Duo and I didn’t notice anything beyond what could be reasonably argued as a placebo effect.
ridafkih 1 days 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 1 days 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 18 hours 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!
hnlmorg 15 hours ago [-]
The Liquid Glass part of the page didn’t bother me because it was clearly just there as a demo widget.
the question I have is this: if the difference between 60hz and 120hz matters, then why wouldn’t you choose a different software stack that compiles down to native code? You end up with better performance, better battery life, and cleaner code.
I get this page should be treated as a lab demonstrating a solution. But it is, in my humble opinion, the wrong solution to that problem presented because it comes with far too many negative trade offs.
And the AI point you raise is a great one. Because the old argument of sticking firmly with the web stack (“I only know how to use JavaScript so therefore I’m going to shoehorn JavaScript into every problem”) no longer applies.
ridafkih 14 hours ago [-]
That's fair if you evaluate this demo as a single holistic "solution," but I think it should be seen as a set of learnings that enable different behaviour.
As for whether refresh rate matters, the community seems to think so. The WebKit bug forum alone is filled with framework authors, drawing applications, game engine developers, etc., all begging Apple to drop the cap.
That drawing application? It could use the controllers on their canvas and immediately double the resolution of their brush stroke interpolation. PWAs never had the ability to render above 60 FPS, even if the user opted out of the limit, now they can. These two things can be easily implemented with minimally invasive code. This demo is just a hybrid on the extreme end.
Even if you throw away the I/O frequency, even if a developer were to now ask "hey, should this be on the compositor instead?" is a massive win for performance and battery life.
People have already begun to take small learnings from this and apply them to their projects, my favourite is this user's portfolio (https://github.com/decepulis/portfolio-svelte-site/pull/12) where they were able to figure out why, on scroll direction change, their rAF was slowing to 10 Hz, and citing this post as the source for the fix.
For some reason, people continue to build for the web. Whether it's an attempt to opt out of the underside of Apple's thumb, a preference for web frameworks, wanting cross-platform or ease-of-access, not wanting to go through App Store Connect, etc., this puts more tools in their tool belt. It's not meant to be an alternative for people considering building a native application.
There is a reason I chose not to make this a library, or a framework. This is meant to be something people can throw their agents at, and fix the problems they encounter.
kalev 1 days 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.
convivialdingo 1 days 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 1 days ago [-]
Likewise. Maybe it’s my old-man (47) eyes, but I saw no difference!
Barbing 1 days ago [-]
They were night and day. iPhone 17 Pro, iOS 27 (not in low power mode)
jkahrs595 21 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 1 days 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.
pjmlp 1 days 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 1 days ago [-]
The difference between 60 and 120fps is nothing like the placebo level, completely non-existent differences between many expensive audio cables.
pjmlp 1 days ago [-]
So far it seems a waste of money to buy 120fps capable devices.
ubercow13 24 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.
throwaway2037 23 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.
__alexs 1 days ago [-]
My phone battery is crying just looking at this.
ridafkih 16 hours ago [-]
A user on lobste.rs commented on the battery draw as well so I responded over there if you're curious with some benchmarks. This increases power draw by about 200 mW over a 60 FPS variant of the exact same thing while scrolling, and does not increase power draw while idling.
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 1 days 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.
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 23 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 1 days 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 21 hours ago [-]
To believe that I would have to believe that iCucks have agency.
unethical_ban 21 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.
throwaway63467 1 days 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 1 days ago [-]
this is what we need
smolder 1 days 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.
SV_BubbleTime 1 days 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 1 days 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.
zach_moore 22 hours ago [-]
love this
1 days ago [-]
nanapipirara 1 days ago [-]
Please keep liquid glass out of websites… It is very distracting and useless.
matsemann 1 days 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 1 days 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".
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 1 days ago [-]
It's probably as close as we can get to Apple admitting they were wrong.
grougnax 22 hours ago [-]
Apple are never wrong.
steve1977 21 hours ago [-]
Forgive me, I have sinned...
ridafkih 1 days 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 1 days ago [-]
I don’t think so. The upper left icon was unusually distracting (iOS 27).
grougnax 22 hours ago [-]
It will be everywhere, sorry
thebytesbuilder 24 hours ago [-]
[flagged]
onewin202602 22 hours ago [-]
[flagged]
jeffdrizzy 18 hours ago [-]
[flagged]
RichRozza 19 hours ago [-]
[flagged]
hnlmorg 1 days 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 1 days ago [-]
Still waiting for a Rust framework which can replace Flutter for Android and iOS development
allthetime 21 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
2001zhaozhao 1 days 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).
"Apple" should instead be named "Asshole", this describes their approach to web apps well..
catlifeonmars 1 days 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 1 days 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 24 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 21 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 1 days 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 1 days ago [-]
There are two different kinds of people...
holoduke 1 days 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 1 days 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 1 days ago [-]
are you just pretending or...? you can immediately notice when you scroll up and down
swiftcoder 1 days 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 1 days 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 1 days 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 1 days 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.
[1]https://x.com/ridafkih/status/2122834693611819451
We've also switched a few months ago to a CSS bottom sheet, it's way better than the previous javascript version.
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.
Not taking any shots at the article (not my niche of interest). Just stating a general observation.
I agree with the above post: this is routine Claude behavior. If you ask it a question about implementation details, it'll acquire and read the source. If it can't do that, _it will disassemble the code_. I was surprised two months ago; now I'm used to it.
AI can do the solution and the write up, but the impetus to try still has to come from a person.
He'd say "well they fucking didn't, did they?"
There's a "hide scroll tracker" toggle in the hamburger menu which hides it.
I guess this may be a worthy trade-off if you're confident your userbase is 100% iOS.
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.
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
Earlier or lower tiers models only has a 60hz display and if you’re not seeing a difference, it’s because on your device there probably isn’t.
A iPhone 12 only has a 60hz display - so nothing in this article matters on your device.
I notice no difference, what should happen?
I had to scroll multiple times to see the difference.
While the effort is commendable, I feel it's largely wasted.
I have hard time noticing any difference in the examples on iPhone 16 Pro
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
It's why the screen is 120Hz not 240Hz or 1200Hz after all, somewhere in the 60-120Hz range is "enough" and for a lot of people 120 is already only a minor benefit at best over 60
Midrange Android phones have had 120hz screens for years! Although I'll be the first to admit that specs aren't everything.
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
If I lift my finger then I see the inertia, but that's the only difference.
iPhone SE 2nd gen, ios 27.2.1
I’d suggest that this particular object respect the prefers-reduced-motion setting if it doesn’t already.
I am.
> you’ll immediately be able to tell which is which
I cannot. lol
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.
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.
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!
the question I have is this: if the difference between 60hz and 120hz matters, then why wouldn’t you choose a different software stack that compiles down to native code? You end up with better performance, better battery life, and cleaner code.
I get this page should be treated as a lab demonstrating a solution. But it is, in my humble opinion, the wrong solution to that problem presented because it comes with far too many negative trade offs.
And the AI point you raise is a great one. Because the old argument of sticking firmly with the web stack (“I only know how to use JavaScript so therefore I’m going to shoehorn JavaScript into every problem”) no longer applies.
As for whether refresh rate matters, the community seems to think so. The WebKit bug forum alone is filled with framework authors, drawing applications, game engine developers, etc., all begging Apple to drop the cap.
That drawing application? It could use the controllers on their canvas and immediately double the resolution of their brush stroke interpolation. PWAs never had the ability to render above 60 FPS, even if the user opted out of the limit, now they can. These two things can be easily implemented with minimally invasive code. This demo is just a hybrid on the extreme end.
Even if you throw away the I/O frequency, even if a developer were to now ask "hey, should this be on the compositor instead?" is a massive win for performance and battery life.
People have already begun to take small learnings from this and apply them to their projects, my favourite is this user's portfolio (https://github.com/decepulis/portfolio-svelte-site/pull/12) where they were able to figure out why, on scroll direction change, their rAF was slowing to 10 Hz, and citing this post as the source for the fix.
For some reason, people continue to build for the web. Whether it's an attempt to opt out of the underside of Apple's thumb, a preference for web frameworks, wanting cross-platform or ease-of-access, not wanting to go through App Store Connect, etc., this puts more tools in their tool belt. It's not meant to be an alternative for people considering building a native application.
There is a reason I chose not to make this a library, or a framework. This is meant to be something people can throw their agents at, and fix the problems they encounter.
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.
I couldn’t have told you if this would have triggered the compositor at 120Hz but if anything worked it would be this.
Interesting from technical point of view, could not care less for all practical purposes.
(https://lobste.rs/s/pxvmxo/bypassing_ios_safari_60_fps_limit...)
Is there really any alternatives? I use FF on iOS, but its still wrapped in Webkit, not Gecko.
https://blog.mozilla.org/en/mozilla/internet-policy/apple-io...
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.
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.
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.
But man, is that effect how annoying it is to use iOS now?
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
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!)
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.
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.
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.
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.
It's not really noticeable in my opinion. Hell, even 30 to 60 FPS isn't noticeable.
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
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.