logoalt Hacker News

Bypassing iOS Safari's 60 FPS Limit to Build Web Applications That Feel Native

123 points • by vinhnx • today at 3:04 AM • 40 comments • view on HN

Comments

doug_durham • today at 5:39 AM

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 1 reply
srcreigh • today at 5:09 AM

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

2001zhaozhao • today at 6:27 AM

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

iniekaas • today at 4:19 AM

This kinda felt good.

faangguyindia • today at 5:48 AM

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

➕ show 2 replies
nanapipirara • today at 6:36 AM

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

➕ show 1 reply
catlifeonmars • today at 4:10 AM

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

➕ show 1 reply
CGamesPlay • today at 3:56 AM

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 2 replies
jkahrs595 • today at 4:35 AM

> If you’re on iOS Safari

I am.

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

I cannot. lol

➕ show 1 reply
Rodmine • today at 7:31 AM

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.

SV_BubbleTime • today at 3:56 AM

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 1 reply
smolder • today at 6:15 AM

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 • today at 5:48 AM

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