DEV Community

Discussion on: F# and WebAssembly

Collapse
 
joerg_beekmann_772a83ef9b profile image
Joerg Beekmann

Informative post. One question, how large is a minimal client WASM app?

Collapse
 
tunaxor profile image
Angel Daniel Munoz Gonzalez

It can vary from what minimal is your minimal but for example these two minimally simple websites are around 1mb

fun blazor

mandadin4

in the case of the mandadin one it was built with .NET5 so .NET6 trimming (also named tree-shaking or AoT) it should be smaller

While I was once against having that much of a payload I came to terms with it recently; I've been doing frontend applications for a while with different clients and employers (with teams from all sizes) and the websites made there with classic frameworks weren't precisely light, so depending who is your audience I wouldn't think it's that bad of a deal. I still think most of the size of a website can come from un-optimized images and other resources

angular

Collapse
 
tunaxor profile image
Angel Daniel Munoz Gonzalez

also another one for what is worth I'm working on a music player and when built for production the (very minimal web app) is around ~318kb (.NET6)

fun player

you can check the project here

Fun.Blazor.Sample

This is a really really minimal Fun.Blazor sample, this should get you started.

For more information visit the project's website

dotnet restore
dotnet watch run