javascript - settimeout is not working when Windows goes to sleep mode and then wake up -
i have noticed in chrome . has idea what's wrong or workaround ?
you can use setinterval
instead - keeps on running. if need one-shot solution, use clearinterval
delete timer. setinterval
fire if computer asleep while event should have been fired. tested behavior in chrome, firefox , internet explorer. example, have @ http://blaeul.de/de/content/javascript-timer-test , source.
Comments
Post a Comment