I have a timer in my website, which ticks every second using setInterval()
It does work well, but when I change the tab, the timer gets slower.
When the window is hidden, the timer gets slow. How can I fix this??
I am using safari 8.0.7.
I have a timer in my website, which ticks every second using setInterval()
It does work well, but when I change the tab, the timer gets slower.
When the window is hidden, the timer gets slow. How can I fix this??
I am using safari 8.0.7.