I am hosting a Blazor Application and the web api on the same server but on tablet browsers it keeps give the users this message An error has occurred. This application may no longer respond until reloaded. Reload so please how I can know what is the problem exactly and how to avoid it. I search in internet and found some said I have to write in _Host.cshtml but the problem still exist.
<script src="_framework/blazor.server.js"></script>
<script>
Blazor.defaultReconnectionHandler._reconnectCallback = function (d) {
document.location.reload();
}
</script>