title: How to make setInterval to work even when a tab is inactive in chrome?
body: <p>I'm making a music mixer, but when I switch to the other tabs in chrome, setInterval will stop calling a function.</p>
  
  <p>I found this: <a href="https://stackoverflow.com/questions/5927284/how-can-i-make-setinterval-also-work-when-a-tab-is-inactive-in-chrome">How can I make setInterval also work when a tab is inactive in Chrome?</a> but my problem is, I'm using setInterval for changing volume smoothly between songs and not for animation. So I can't use Date() method. I don't even want to use something like jQuery, just pure Javascript.</p>
  
  <p>Actually, my JS code is not small so theres link to js code: <a href="http://warhome.eu/play/player.js" rel="nofollow noreferrer">http://warhome.eu/play/player.js</a></p>
  
  <p>and the PHP file: <a href="http://pastebin.com/FWJDW7e0" rel="nofollow noreferrer">http://pastebin.com/FWJDW7e0</a></p>
  
  <p>Thanks for help!</p>