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.
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)?
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!
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.
Replies (1)
Replies (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.
Replies (1)
Replies (1)
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!
Replies (1)
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.
Continue this thread (1 replies) →