Javascript loading slow down when tab changes

38 views Asked by At

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.

0

There are 0 answers