How can I display a page- progress something when I launch a Blazor web app?
Currently whatever I do does not work. I am using .NET 9.
Any suggestions?
Updated
<Router AppAssembly="typeof(Layout.MainLayout).Assembly"><Found Context="routeData"><div id="splash-screen" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 1000;"><h1>Loading...</h1></div><RouteView RouteData="routeData" DefaultLayout="@(AppState.IsLoggedIn ? typeof(Layout.MainLayout) : typeof(Layout.LandingPageLayout))"/><FocusOnNavigate RouteData="routeData" Selector="h1"/></Found><NotFound><PageTitle>Not Found</PageTitle><LayoutView Layout="@typeof(Layout.LandingPageLayout)"><p role="alert">Sorry, there's nothing at this address.</p></LayoutView></NotFound></Router>I also created a SplashLayout.razor:
<div id="splash-screen" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 1000;"><h1>Loading...</h1></div>