zt
03/21/2025, 4:33 PMian.shaun.thomas
03/21/2025, 4:35 PMChrimaeon
03/21/2025, 4:35 PMMoe
03/21/2025, 4:47 PMrelease
) build with Kotlin 2.1.20 or newer, as it includes default flags that reduce output size and improve performance.
• Minimize your app's startup work — avoid initializing heavy components or computations before your first frame.
• Use lazy loading where possible.
• Ensure your server serves the .wasm
binary with application/wasm
content type and proper compression (gzip
or brotli
).
• Cache bust properly so returning users don't have to re-download the WASM unless it has actually changed.
Still, don't expect massive reductions in cold start time — WASM loading currently just has that cost. Focusing on the user experience during that period (e.g., loading spinner, app branding, skeleton UI) can go a long way.Michael Paus
03/21/2025, 5:10 PMmaxim
03/27/2025, 7:46 PMMichael Paus
03/27/2025, 8:59 PM