Blazor index.html should mimic the top level site
See original GitHub issueRather than
<div id="app">Loading...</div>
the index.html
should have
<div id="app">
<div class="page" b-vehgu10x1i>
<div class="sidebar" b-vehgu10x1i>
<div class="top-row pl-4 navbar navbar-dark" b-sjoxlt10a7></div>
</div>
<div class="main" b-vehgu10x1i>
<div class="top-row px-4" b-vehgu10x1i></div>
<div class="content px-4" b-vehgu10x1i>Loading...</div>
</div>
</div>
</div>
I was going to make a change to the template; however with the scoped css https://github.com/dotnet/aspnetcore/pull/24380 it additionally needs the specific attribute for the css to work (e.g. b-vehgu10x1i
and b-sjoxlt10a7
above); which I’m not sure how to do.
This change means while the page is loading assets rather than starting as
It instead starts at
Which is both less bleak and a less jarring transition to
It also makes the experience perceptively seem to load faster
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Why is there a <base href="/" /> in Blazor's index.html or ...
From here. The app base path is the app's root URL path. Consider the following ASP.NET Core app and Blazor sub-app: The ASP....
Read more >ASP.NET Core Blazor routing and navigation
Learn how to manage Blazor app request routing and how to use the ... component sets the focus to the page's top-level header...
Read more >Improve Default Blazor WASM Loading Experience #37199
Currently, when opening a Blazor Wasm app, the user sees Loading... till ... Blazor index.html should mimic the top level site #24910.
Read more >Cant directly go to a different blazor page : r/dotnet
I have a blazor webassembly app (hosted on github pages) that I resolved this issue in. You need to: Add this to your...
Read more >How to fix Blazor WASM base path problems - elmah.io Blog
But Blazor WASM applications are still Single Page Applications (SPAs) at ... that suggest setting the base path in wwwwroot/index.html .
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
May I suggest a spinner instead of
...
? https://getbootstrap.com/docs/4.4/components/spinners/Thanks all for the input, I’m going to close this out in favor of https://github.com/dotnet/aspnetcore/issues/37199 which covers the Blazor WASM initial loading story.