Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 677 Bytes

what_is_minimum_timeout_throttling.md

File metadata and controls

15 lines (8 loc) · 677 Bytes

What is minimum timeout throttling?

Minimum timeout throttling refers to the browser's behavior of enforcing a minimum delay for setTimeout and setInterval calls. This is done to avoid excessive resource consumption, especially in high-frequency scenarios like animations or polling.

For example, in modern browsers, the minimum delay is typically 4ms for background tabs and 0ms for the active tab.

setTimeout(() => console.log('Executed after delay'), 0);

Tags: advanced, JavaScript, Performance