Skip to content

Commit 9acc130

Browse files
committed
fixes #1747
1 parent c6c25c9 commit 9acc130

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

2-ui/99-ui-misc/03-event-loop/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ What's going to be the order here?
263263
2. `promise` shows second, because `.then` passes through the microtask queue, and runs after the current code.
264264
3. `timeout` shows last, because it's a macrotask.
265265

266-
The richer event loop picture looks like this (order is from bottom to top, that is: `setTimeout` first, then microtasks and so on):
266+
The richer event loop picture looks like this (order is from top to bottom, that is: the script first, then microtasks, rendering and so on):
267267

268268
![](eventLoop-full.svg)
269269

270-
**All microtasks are completed before any other event handling or rendering or any other macrotask takes place.**
270+
All microtasks are completed before any other event handling or rendering or any other macrotask takes place.
271271

272272
That's important, as it guarantees that the application environment is basically the same (no mouse coordinate changes, no new network data, etc) between microtasks.
273273

Loading

figures.sketch

10.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)