title: Is there a workaround for Firefox 5 and Chrome ”setInterval()” and “setTimeout()” in inactive tab
body: <p>There is a JavaScript optimization that causes inactive tabs to slow down <code>setInterval()</code> and setTimeout()` in Firefox 5 and Chrome. I have it set for 66 miliseconds but it goes up to 1,000 when a tab is inactive.</p>
  <p>There is way to determine how much time passed when the tab was inactive? I need JavaScript to keep running and performing actions, like playing sounds for some events.</p>
  <p>Is there any way to achive that?</p>