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

Blazor Loading Page Component #55756

Closed
1 task done
HolyOne opened this issue May 16, 2024 · 2 comments
Closed
1 task done

Blazor Loading Page Component #55756

HolyOne opened this issue May 16, 2024 · 2 comments
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved

Comments

@HolyOne
Copy link

HolyOne commented May 16, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I am trying to add a Loading screen with progress (and display which dll ' s are being loaded if possible)
Most examples are too complex and old or they need modification in both app.razor and MainLayout contents.

The reason I open this ticket is, a loading screen is common in most mid-large size projects.

Describe the solution you'd like

I think the Blazor template should come with an (optional) loading screen component and blazor.web.js should support it and inject it the necessary values (or at least a js event listener, or maybe a better native way).
So we can easily design our loading screens.

Additional context

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label May 16, 2024
@javiercn
Copy link
Member

javiercn commented May 20, 2024

@HolyOne thanks for contacting us.

We don't think we should complicate the template with a more elaborate loading UI. The template is already complex enough and presents enough options, and due to that, we need to carefully weight making new additions to it.

This is something that can be built into a nuget package in a reusable way and we don't think there is a single unique way that will satisfy everyone.

I think the Blazor template should come with an (optional) loading screen component and blazor.web.js should support it and inject it the necessary values (or at least a js event listener, or maybe a better native way).
So we can easily design our loading screens.

Note that there's already support through a custom property that we update during the loading process to know the percentage of files that have been downloaded.

@javiercn javiercn added question ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. labels May 20, 2024
Copy link
Contributor

This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.

See our Issue Management Policies for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved
Projects
None yet
Development

No branches or pull requests

3 participants
@HolyOne @javiercn and others