News for hackers. Stuff that matters.
Re:Largest Contentful Paint by pjc50 on Wednesday August 14, 2019 @06:33AM (#20694148)
I've got some bad news for you: if you want to have a UI that's both complicated and responsive, you have to do something like this regardless of the platform. The golden rule is "don't block the UI thread", but then you have to decide how much work you can do synchronously before it counts as "blocking" versus the cost of moving it to some asynchronous worker. Getting it wrong gives you "white windows" or "beachballs" on native UIs.

Native UIs also have the significant advantage of loading all their resources from the filesystem, which is usually faster than the network.

Re:Largest Contentful Paint by yoz-y on Wednesday August 14, 2019 @07:26AM (#20694375)
Another big difference is that native UIs are usually way more rigid than HTML. For example a scrolling view in majority of applications contains cells of either the same width or same height. The frameworks are optimised for this. HTML can’t put any expectations on content size by default.