-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throttling and clamping of setTimeout and setInterval #7941
Labels
Comments
This was referenced May 19, 2022
colinrotherham
added a commit
to alphagov/govuk-frontend
that referenced
this issue
Oct 4, 2022
Timers in background pages will be aligned, clamped or throttled https://developer.chrome.com/blog/background_tabs whatwg/html#7941
colinrotherham
added a commit
to alphagov/govuk-frontend
that referenced
this issue
Oct 4, 2022
Timers in background pages will be aligned, clamped or throttled https://developer.chrome.com/blog/background_tabs whatwg/html#7941
colinrotherham
added a commit
to alphagov/govuk-frontend
that referenced
this issue
Oct 5, 2022
…eadless Timers in background pages will be aligned, clamped or throttled https://developer.chrome.com/blog/background_tabs whatwg/html#7941
colinrotherham
added a commit
to alphagov/govuk-frontend
that referenced
this issue
Oct 5, 2022
…eadless Timers in background pages will be aligned, clamped or throttled https://developer.chrome.com/blog/background_tabs whatwg/html#7941
colinrotherham
added a commit
to alphagov/govuk-frontend
that referenced
this issue
Oct 5, 2022
…eadless Timers in background pages will be aligned, clamped or throttled https://developer.chrome.com/blog/background_tabs whatwg/html#7941
colinrotherham
added a commit
to alphagov/govuk-frontend
that referenced
this issue
Oct 5, 2022
…eadless Timers in background pages will be aligned, clamped or throttled https://developer.chrome.com/blog/background_tabs whatwg/html#7941
colinrotherham
added a commit
to alphagov/govuk-frontend
that referenced
this issue
Oct 6, 2022
…eadless Timers in background pages will be aligned, clamped or throttled https://developer.chrome.com/blog/background_tabs whatwg/html#7941
querkmachine
pushed a commit
to alphagov/govuk-frontend
that referenced
this issue
Oct 17, 2022
…eadless Timers in background pages will be aligned, clamped or throttled https://developer.chrome.com/blog/background_tabs whatwg/html#7941
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following up from WICG/interventions#5, WICG/interventions#9 and WICG/interventions#34, we should explore to what extent "clamping"/aligning and throttling timers under various conditions (background tabs, out-of-view and/or cross-origin iframes) is supported in the spec. This is useful for perfomance and power efficiency by reducing CPU wakeups, and it's implemented in all major browsers, as evident in the linked issues.
It might also be worth defining minimum/maximum wait time boundaries that developers can expect their code to run in.
The text was updated successfully, but these errors were encountered: