Blazorise icon indicating copy to clipboard operation
Blazorise copied to clipboard

WASM : Reinvestigate startup improvements

Open David-Moreira opened this issue 3 years ago • 6 comments
trafficstars

WASM : Reinvestigate startup improvements

David-Moreira avatar Jul 23 '22 15:07 David-Moreira

https://docs.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/configure-trimmer?view=aspnetcore-6.0

stsrki avatar Jul 23 '22 18:07 stsrki

https://github.com/ILoveDotNet/ilovedotnet has a prerendering enabled.

stsrki avatar Jul 24 '22 06:07 stsrki

Is Blazorize slow to startup? I have been having massive loadtime issues with abp.io and I thought that apb.io was the issue.

Just to add I cant use trimming ecause of obfuscated dlls at the moment

sturlath avatar Jul 24 '22 10:07 sturlath

Blazorise has very little footprint compared to ABP, but we still want to make it better. The end result should be to load instantly, if possible.

stsrki avatar Jul 24 '22 10:07 stsrki

Right, when we talk about start up improvements, it's stuff/tricks that you can do to make it actually download faster or be perceived to load faster, since WASM as you know has a big payload.

We had tried the trimmer and the prerender in the past with no great success... But we've recently started to see some wasm sites load pretty fast on first load.... So we'll be taking a look at those and reinvestigate this.

So we'll see what we can do on our demo running WASM. So basically we'll be trying to optimize the demo wasm app, not exactly Blazorise itself. Altought if there's improvements we can do to Blazorise itself, we will if it makes sense of course.

David-Moreira avatar Jul 24 '22 15:07 David-Moreira

And we can and will write a blog post once we figure the necessary steps to make it load faster.

stsrki avatar Jul 24 '22 15:07 stsrki

@David-Moreira Should we close this? The coming Blazor United in .NET 8 will most probably solve the loading problem.

stsrki avatar May 29 '23 13:05 stsrki

The Blazor United is an effort centralized in reusing all the tools available in kind of a single solution but one thing it does require for some of the features, like loading the Blazor.Server component first while loading the dlls in the background, isis having the solution hosted in a server. Which is kinda different from straight up just having the app served without a "dedicated" server. I.e only reading html and css/js/dll/etc... resouces

However nowadays as long as you are using dotnet publish you should already notice that the apps load pretty fast (because the publish already does the trimming, etc by default). So you can close with that in mind.

David-Moreira avatar May 29 '23 13:05 David-Moreira