Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to change background color of loading page of a WASM app?

$
0
0

I am working on a WASM standalone application and simply trying to change the color of the loading page. By default it is white.

Here is what I have tried (in Index.html):

<body><div style="background-color: red" id="app"></div><div id="blazor-error-ui">        An unhandled error has occurred.<a href="" class="reload">Reload</a><a class="dismiss">🗙</a></div><script src="_framework/blazor.webassembly.js"></script></body>

-> The page remains white until Home page is loaded.

2nd thing I tried (same code as above, only adding style attribute to body here):

<body style="background-color: red" >

-> The page is white, then red, then Home page is loaded, still not what I want to achieve.

What am I missing here ?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>