You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIU, this is a better version of navigator.scheduling.isInputPending() (which LH also does not handle #11747).
We can handle this pretty simply, I think:
Emit a trace event when await scheduler.yield() happens
When simulating long tasks for mobile, use these trace events as the bounds for "synthetic" tasks, and check if those are larger than the long task threshold rather than the original-task-multiplied-by-cpu-throttling
This should fairly reduce TBT for pages that properly use scheduler.yield.
We may wish to prioritize this in order to give people trying this new feature out in Origin Trials, and using Lighthouse to help evaluate its impact, will get a good representation of its effectiveness.
The text was updated successfully, but these errors were encountered:
people trying this new feature out in Origin Trials
FYI the origin trial is over and scheduler.yield is shipping in m129 (currently in beta).
Plan seems workable for tasks as LH has defined them, though more difficult in an animation-frame-based future. OTOH might not matter as much by then since it only matters for simulated throttling.
scheduler.yield() is here.
AFAIU, this is a better version of
navigator.scheduling.isInputPending()
(which LH also does not handle #11747).We can handle this pretty simply, I think:
await scheduler.yield()
happensThis should fairly reduce TBT for pages that properly use
scheduler.yield
.We may wish to prioritize this in order to give people trying this new feature out in Origin Trials, and using Lighthouse to help evaluate its impact, will get a good representation of its effectiveness.
The text was updated successfully, but these errors were encountered: