Would WASM solve the performance issue? One can imagine writing a webview GUI in a compiled language in order to get the speed and size benefits.
Wasm is also quite slower and bulkier because you'd have to compile your entire runtime into wasm, and then have it in the browser.