So I developed this website for monitoring the status of multiple experiments around the world. The website is supposed to update every few seconds, so I made that every 3 seconds using JavaScript.
The page works fine, but if I leave it for some time or switch the tab, the timer just stops! In the source, you'll see that the only actions that stops the timer are:
1- If the user clicked on the timer itself
2- If the user chose specific data to view
Why is it stopping alone? How can I force it to run forever? I'm suspecting this is a browser thing. I'm using Google Chrome 46.0.2490.80 and Firefox 42.0.
If you require any additional information, please ask.