Electron apps 😅🤣... why are we like this. Also I'm sure you remember for a bit there Java applets were the way for interactive apps on the web, just as they are for native android apps still.
The thing I always bring up is, imagine the browser having Beam VM with its concurrency and resilience model, coupled with access to the renderer apis, and someway to ship "complied" optimized UI code. Then you write apps in any language that adds a Beam target and ui sdk.
No shadow doms, no JS, no need for wasm, no webcomponents ... you can get performance and still take advantage of sandboxing etc.