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#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -