I'm making a music mixer, but when I switch to the other tabs in chrome, setInterval will stop calling a function.
I found this: How can I make setInterval also work when a tab is inactive in Chrome? 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.
Actually, my JS code is not small so theres link to js code: http://warhome.eu/play/player.js
and the PHP file: http://pastebin.com/FWJDW7e0
Thanks for help!