Skip to content

Commit

Permalink
should -> ought to
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Jul 23, 2018
1 parent f6f9f9e commit f2b6ae3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -91314,9 +91314,9 @@ scheduleWork(); // queues a task to do lots of work</pre>
browser's <span>event loop</span>, as would be the case when using, for example, <code
data-x="dom-setTimeout">setTimeout(<var>f</var>,&nbsp;0)</code>.</p>

<p>Authors should be aware that scheduling a lot of microtasks has the same performance downsides
as running a lot of synchronous code. Both will prevent the browser from doing its own work, such
as rendering or scrolling. In many cases, <code
<p>Authors ought to be aware that scheduling a lot of microtasks has the same performance
downsides as running a lot of synchronous code. Both will prevent the browser from doing its own
work, such as rendering or scrolling. In many cases, <code
data-x="dom-window-requestAnimationFrame">requestAnimationFrame()</code> or
<code>requestIdleCallback()</code> is a better choice. In particular, if the goal is to run code
before the next rendering cycle, that is the purpose of <code
Expand Down

0 comments on commit f2b6ae3

Please sign in to comment.