Skip to content

Commit 02e82ad

Browse files
authored
Update article.md
1 parent 5189d51 commit 02e82ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-ui/5-loading/02-script-async-defer/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ But there are also essential differences between them:
185185

186186
| | Order | `DOMContentLoaded` |
187187
|---------|---------|---------|
188-
| `async` | *Load-first order*. Their document order doesn't matter -- which loads first | Irrelevant. May load and execute while the document has not yet been fully downloaded. That happens if scripts are small or cached, and the document is long enough. |
188+
| `async` | *Load-first order*. Their document order doesn't matter -- which loads first runs first | Irrelevant. May load and execute while the document has not yet been fully downloaded. That happens if scripts are small or cached, and the document is long enough. |
189189
| `defer` | *Document order* (as they go in the document). | Execute after the document is loaded and parsed (they wait if needed), right before `DOMContentLoaded`. |
190190

191191
In practice, `defer` is used for scripts that need the whole DOM and/or their relative execution order is important.

0 commit comments

Comments
 (0)