-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Page Flashing After Initial Load #42544
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
Comments
Because blazor updates DOM, instead of providing a static page, there is always something to display before the rendering completes which in my opinion you can just have a black screen in the background so everything looks black making users think it is loading instead of flashing |
Well, the weird thing is that the flashing happens even when the render mode is set to |
@RoyIL thanks for contacting us. That's expected since the initial render doesn't include content as you are using We also have a separate item to avoid doing a second render after prerender all together in most situations, if you are interested, I would suggest you upvote that instead. |
Hi @javiercn, thanks for your comment! It's actually seems to work the other way around for me! When the render-mode is set to However, when the render-mode is set to |
Describe the bug
After the initial page load (i.e. the first time the page is loaded), the Blazor Server website seems to render twice, which creates a weird flickering/flashing effect. Has anyone experience a similar issue before, and is there any way to solve it within the current limitations of Blazor?
Expected Behavior
Page loads without flashing/flickering, even if it is going to take more time to load.
.NET Version
6.0.301
Anything else?
Recording.mp4
The text was updated successfully, but these errors were encountered: