Investigated issue #14 with iteration not working when tab is inactive,
Browsers limit the setInterval and setTimeout to minimum time 1000 ms.
Used below library to change setTimeout behavior,
Now setTimeout uses web workers which are not limited in background.
https://github.com/myonov/momentum
Inactive tabsRequires Gecko 5.0(Firefox 5.0 / Thunderbird 5.0 / SeaMonkey 2.2)
Starting in Gecko 5.0 (Firefox 5.0 / Thunderbird 5.0 / SeaMonkey 2.2), intervals are clamped to fire no more often than once per second in inactive tabs.
Investigated issue #14 with iteration not working when tab is inactive, Browsers limit the setInterval and setTimeout to minimum time 1000 ms. Used below library to change setTimeout behavior, Now setTimeout uses web workers which are not limited in background. https://github.com/myonov/momentum
reference: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval