Open connorjclark opened 1 week ago
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 https://github.com/GoogleChrome/lighthouse/issues/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.