In my aspx page, I use xmlhttp.response to update a part of this page. This update occurs in every 3 seconds using js function. But when my PC goes to sleep mode, this update doesn’t happen. This is OK. But when PC wake up from sleep mode, I need to start update automatically without reload this page. How to do this?
In my aspx page, I use xmlhttp.response to update a part of this page.
Share
You can detect disruptions in the JS timeline (e.g. laptop sleep, alert windows that block JS excecution,
debuggerstatements that open the debugger) by comparing change in wall time to expected timer delay. For example: