This playground investigates the throttling behavior of setTimeout when a browser tab is in the background. Try switching to another tab to see how the timing is affected.
Normal setTimeout
Standard setTimeout implementation without any mitigation.
Target interval: 100ms
All intervals (ms):
Min
0.0 ms
Max
0.0 ms
Avg
0.0 ms
Time differences visualization (scroll to see all)
Web Worker
Using Web Workers to mitigate throttling.
Target interval: 100ms
All intervals (ms):
Min
0.0 ms
Max
0.0 ms
Avg
0.0 ms
Time differences visualization (scroll to see all)
Audio Loop
Using a small sound audio loop to mitigate throttling.
Target interval: 100ms
All intervals (ms):
Min
0.0 ms
Max
0.0 ms
Avg
0.0 ms
Time differences visualization (scroll to see all)