简体   繁体   中英

Running Blazor WASM on Internet Explorer just shows "Loading.." instead of a meaningful error message

We've deployed a Blazor WASM app in an org that has access to multiple browsers however the default (for now) happens to be IE 11 which doesn't support WASM.

The issue is the confusion when clicking URLs from notification emails (taking the user to the Blazor app), the user ends up in IE 11 with "Loading.." on the top left corner of the screen. Stays like that without any meaningful feedback.

I tried searching for this "Loading.." message in the source without success, is there a way to show something more meaningful to the user?

eg "Loading.. (Notice: this app is not compatible with Inte.net Explorer)"

The loading message is in your index.html - and you can change it to whatever you like. You can also advise the org to configure Inte.net Explorer mode in Edge

index.html

<body>
    <div id="app">Loading...</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 technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM