I show you a trivial example:
setInterval (function() {
player.money += buildings.quantity * buildings.production
document.getElementById("money").innerHTML = player.money
}, 1000)
when I change tab or minimize the window, it is as if the execution is blocked, is this normal?