Skip to content
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

Open
johannhof opened this issue May 19, 2022 · 0 comments
Open

Throttling and clamping of setTimeout and setInterval #7941

johannhof opened this issue May 19, 2022 · 0 comments

Comments

@johannhof
Copy link
Member

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.

colinrotherham added a commit to alphagov/govuk-frontend that referenced this issue Oct 4, 2022
colinrotherham added a commit to alphagov/govuk-frontend that referenced this issue Oct 4, 2022
colinrotherham added a commit to alphagov/govuk-frontend that referenced this issue Oct 5, 2022
colinrotherham added a commit to alphagov/govuk-frontend that referenced this issue Oct 5, 2022
colinrotherham added a commit to alphagov/govuk-frontend that referenced this issue Oct 5, 2022
colinrotherham added a commit to alphagov/govuk-frontend that referenced this issue Oct 5, 2022
colinrotherham added a commit to alphagov/govuk-frontend that referenced this issue Oct 6, 2022
querkmachine pushed a commit to alphagov/govuk-frontend that referenced this issue Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants