"With the visibility API, you can gracefully pause or degrade the timer to a much longer poll when the tab is in the background."<p>Note that this is already enforced for setInterval in some browsers -- I think Chrome changes the minimum interval to 1000ms from 4ms when the tab is in the background.