calling function recursively by setTimeout() will works fine but whenever I shift to new tab setTimeout() stops calling function ?
Asked
Active
Viewed 2,244 times
0
-
1JS stops executing when not on focus. – Jonas Wilms Jun 23 '17 at 08:51
-
but why not in case of setInterval() ? It is working fine even after switching to another tab . – Sagar Singh Jun 23 '17 at 13:53