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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -