Skip to content

Commit

Permalink
Add note from requestIdleCallback spec
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Oct 7, 2021
1 parent 01c8649 commit d706afc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -93551,8 +93551,13 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
following steps to compute the current idle period deadline: <ref spec=REQUESTIDLECALLBACK></p>

<ol>
<li><p>Let <var>deadline</var> be this <span>event loop</span>'s
<span>last idle period start time</span> plus 50.</p></li>
<li>
<p>Let <var>deadline</var> be this <span>event loop</span>'s
<span>last idle period start time</span> plus 50.</p>

<p class="note">The cap of 50ms in the future is to ensure responsiveness to new user input
within the threshold of human perception.</p>
</li>

<li><p>Check for potential pending rendering: If any <code>Window</code> in the
<span>same-loop windows</span> for this <span>event loop</span>'s <span>map of animation frame
Expand Down

0 comments on commit d706afc

Please sign in to comment.