setTimeout(), setInterval(), and requestAnimationFrame()
What is the minimum delay that setTimeout actually guarantees?
The minimum delay in modern browsers follows the HTML5 spec: 1) Even with a 0ms specified delay, there's a minimum of ~4ms enforced, 2) This minimum can vary slightly between browsers, 3) The delay is not guaranteed to be exact, only minimum, 4) Nested timeouts may have higher minimums (>10ms), 5) This prevents excessive CPU usage from rapid timeouts, 6) Browser throttling can further increase delays, especially in background tabs.