w3c / requestidlecallback

Cooperative Scheduling of Background Tasks
https://w3c.github.io/requestidlecallback/
Other
50 stars 19 forks source link

Suggestion: expose specific information instead of deadline #97

Open noamr opened 2 years ago

noamr commented 2 years ago

Deadline is computed by the following:

I'm suggesting that instead of computing the deadline based on this, we expose the different values, not necessarily from within the idle callback.

JS Libraries and websites can decide how they compute their "deadline". The benefit is that this info is also valuable outside rIB.

yoavweiss commented 2 years ago

/cc @shaseley - who mentioned hearing this request from folks.