Using SplashScreen during startup? #3989
-
Hello, Is there any way to use splash screen as a Loading page before website renders to the user (and/or while MainLayout completes any background activities)? `<script src="_framework/blazor.web.js" autostart="false"></script> <script> Blazor.start({ webAssembly: {} }); </script>`This probably wouldn't work as it needs Blazor to be running for Dialogservice to run, so is there any other way we can use it as a Loading stage for MainLayout? Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Nope, can only be done after Blazor has started indeed. Maybe you can use what is described at https://www.fluentui-blazor.net/Splash Screen and make main screen be smaller than the splash with js? |
Beta Was this translation helpful? Give feedback.
-
I figured out Blazr.RenderState on Routes.razor to be a more straightforward way to get the result I wanted.
The splash screen should remain visible while the application is rendering, as its primary purpose is to provide a loading indicator. |
Beta Was this translation helpful? Give feedback.
I figured out Blazr.RenderState on Routes.razor to be a more straightforward way to get the result I wanted.