News for hackers. Stuff that matters.
Re:Native all the way, until you need text by mpweiher on Sunday May 17, 2026 @01:16PM (#48170881)
I am not sure WebViews are the actual problem, and fairly confident it is running the entire application + gargantuan frameworks as JavaScript is.

I am currently working on something I call HTMXNative, which is what it sounds like: using HTMX in WebViews for hybrid apps.

I haven't really looked much at memory consumption, but when I've looked so far it's been very comparable to equivalent apps using native UI.

Re:Native all the way, until you need text by domga on Sunday May 17, 2026 @05:37PM (#48173407)
The issue with JS is that each page gets its own execution context so they don’t share any memory. I am actually curious what does the WebView do to save on RAM here?
Re:Native all the way, until you need text by mpweiher on Monday May 18, 2026 @07:02AM (#48177912)
It doesn't have to "do" anything special if you just use it for rendering HTML, and not for running gargantuan layers of JS frameworks.

If you run gargantuan layers of JS frameworks in a WebView it will perform just as badly as a full browser. After all, a browser is (more or less) just a process wrapped around a WebView.