javascript - Does a timer keep firing in a mobile browser after the device is put to sleep? -


i have repeating timer on page. if page being viewed on mobile device (like iphone), , user sleeps phone, browser keep executing timer?

i'm worried users leaving page open, sleeping phone, timer keeps firing forever until close page or navigate away it.

thanks

i think stops, make sure why not leverage visibility api? page not visible if activity not showing or user using tab.

http://www.html5rocks.com/en/tutorials/pagevisibility/intro/


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -