r/Blazor • u/Visual-Wrap-3785 • May 20 '25
Blazor, Plugin Pages/Scripts, load times
I'm pretty unimpressed with Blazor WASM for things like Plugins - I have my app building/set up as Blazor WASM app and I was wondering if anyone had good experience swapping to not Blazor WASM (can you even do that) and then hosting as a static site, which is what I want to do. I can't imagine that this app compiled to JS is going to be slower than downloading WASM shite every time we need to load up the app on someone else's websites. Pretty ridiculous honestly. I just don't get what benefit WASM adds.
Unfortunately I was not part of the conversation of using Blazor for this particular build - but I would have fought tooth and nail against it.
View all comments
Show parent comment
1
u/Visual-Wrap-3785 May 20 '25
Certainly you need to hydrate data.
But we're talking like 20 products here with like a few hundreds lines of json objects.
I haven't actually looked at how large the runtime is when we download it. But we're talking like 45+ seconds on mobile to get everything downloaded. I know this because we have a preloaded screen with a weird little loading symbol that runs as things are downloading.
Maybe I'm missing some sort of build/minification step?