mirror of
https://github.com/lexmount/moli.git
synced 2026-11-22 00:02:21 +00:00
Share one deadline ceiling across callbacks in an idle period. Requests registered after the period starts, including from microtasks and other Windows, wait for the next opportunity; positive timeouts can expire first. Recompute IdleDeadline.timeRemaining() from active HTML timers and pending rendering work on every call. Retain the actual frame wake deadline through rendering dispatch and use the deadline object's realm when borrowing the method across windows. Preserve the existing DOM clock precision. Cover twelve public budget scenarios, six period and timeout-order scenarios, and future/cancelled/running timer deadline queries.