Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make initial client side blazor app download faster #10545

Closed
jucchytil opened this issue May 26, 2019 · 4 comments
Closed

Make initial client side blazor app download faster #10545

jucchytil opened this issue May 26, 2019 · 4 comments
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue

Comments

@jucchytil
Copy link

The initial download time for users is too long.

During the build process, analyze the entire app and output the minimal number of files needed to get the app to display in a browser.

Perhaps (just ideas here)

  • All executables (wasm/dlls) would only link in the absolutely needed functionality and be compiled to a single wasm file
  • minify multiple css and js files to single files if possible
  • Explore combining to a single file similar to .net core 3.0 single file executables
  • Explore combining to a zip file, download zip file to browser and use run-from-zip type capability similar to what can be used in azure-webapps/functions.

In short. make the user experience feel as fast as a well designed javascript based app.

@jucchytil jucchytil changed the title Compile to wasm Make initial client side blazor app download faster May 26, 2019
@jucchytil
Copy link
Author

If anyone knows of a document that describes best practices to improve the user experience during the initial client side blazor download, I would be grateful for links to read.

@mkArtakMSFT
Copy link
Member

Thanks for contacting us, @jucchytil.
This is a never-ending journey for us and we're constantly working on improving the startup performance of a client-side blazor application. The main contributor to this at the moment is the size of the mono.wasm, which we're working on with the https://github.com/mono/mono folks to improve.
We also have another issue, where we plan to enable lazy-loading of Blazor applications in the future: #5465

@mkArtakMSFT
Copy link
Member

mkArtakMSFT commented May 26, 2019

/cc @rynowak, @danroth27

@mkArtakMSFT mkArtakMSFT added ✔️ Resolution: Duplicate Resolved as a duplicate of another issue enhancement This issue represents an ask for new feature or an enhancement to an existing one area-blazor Includes: Blazor, Razor Components labels May 26, 2019
@jucchytil
Copy link
Author

would it make sense to compile the mon.wasm together with all the other executables into one wasm file during the build and then just download the one wasm file?

@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants