We have a dashboard which should refresh every 5min if the client is online.
setInterval(function() {
if (navigator.onLine) location.reload();
}, 300000);
However, we constantly run into a chrome "crash-like" screen with different variations most commonly "your computer went to sleep":
What would be a good, reliable way to refresh if and only if we're up (awake) and online?
