3 ms·
On the web, you can get the final bundle down to about 60k gzipped, which is comparable to react. The average desktop/mobile binary is less than 2mb, but that’
by jkelleyrtp 4y ago
On the web, you can get the final bundle down to about 60k gzipped, which is comparable to react.
The average desktop/mobile binary is less than 2mb, but that’s with zero size optimizations to shrink the output. You can certainly get less.
Dioxus runs on a native thread and renderers into the webview, so there’s very little JS footprint and the render resources are shared among all webview on your system.
I haven’t experimented with it, but it’s entirely possible to run on a raspi with webkitgtk. We’re building a native renderer with WGPU and already support rendering to the terminal.
- codethief 4y ago> Dioxus runs on a native thread and renderers into the webview, so there’s very little JS footprint and the render resources are shared among all webview on your system. So I need to have some sort of WebView library pre-installed? What WebView would that be on, e.g., Linux? And is it possible to include it in the build to create a standalone binary? If so, how much would that make the binary size go up? In my experience, relying on a system-wide WebView is a recipe for desaster.
- jkelleyrtp 4y agoFor most platforms relying on the browser’s webview is fine since most platforms ship with a browser! But you can always specify WebKitGTK as a dependency which I think is a one time 2GB cost.