ne or misbehaving. */ async function checkNetworkAndReload() { try { const response = await fetch(location.href, { method: 'HEAD', }); // Verify we get a valid response from the server if (response.status >= 200 && response.status < 500) { window.location.reload(); return; } } catch { // Unable to connect so do nothing. } window.setTimeout( checkNetworkAndReload, Math.pow(2, count++) * 2500 ); } checkNetworkAndReload(); } ØA —Eoúô