-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Update chained JS timers throttling behaviour in Chrome 88. #39025
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
Conversation
|
Preview URLs (comment last updated: 2025-04-17 10:29:09) |
wbamberg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR!
| - **Minimal throttling**: Applies to timers when the page is visible, has made sound recently, or is otherwise considered active by Chrome. Timers run close to the requested interval. | ||
|
|
||
| - **Throttling**: Applies to timers when minimal throttle conditions are not met and any of these conditions are true: | ||
| - Chain count (timer invocations) is lower than 5. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Chain count" is I guess what's referred to earlier on in this page as "nesting", and it would be good to use consistent language.
| Timers in this state are checked once per second, which may be batched together with other timers that have similar timeouts. | ||
|
|
||
| - **Intensive throttling**: Introduced in Chrome 88 (January 2021). Applies to timers when neither minimal throttling nor throttling conditions are met, and all of the following conditions are met: | ||
| - Chain count (timer invocations) is 5 or higher. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here.
No problem, just pushed the changes! |
wbamberg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thank you, @younisdev !
Description
Updated chained JS timers throttling behaviour in Chrome 88, which impacts the performance for timers in inactive tabs with chrome throttling stages.
Motivation
This update clarifies the updated throttling behavior of JavaScript timers in Chrome 88, which impacts performance for timers in inactive taps. It ensures the reader is aware of chrome throttling stages.
Additional details
None.
Related issues and pull requests
Fixes #38988.