I'm experiencing an issue with my web app where the 'safety' code triggers a page reload if the server (Socket.IO) connection becomes silent for more than 5 seconds, often due to customer site firewall or broken-proxy issues.
Although the Socket.IO connection stops when a new page begins loading, the safety code doesn't recognize this change. This results in navigating to a slow-loading page causing the safety code to activate and redirect back to the previous page.
I am looking for a solution to determine if the browser is waiting for a new (slow) page to load right before the safety code initiates a reload. Are there any methods other than attaching a jQuery click event to each link (which wouldn't capture navigation via the address bar)?
Thank you,
Chris.