Skip to content

Commit 62586b5

Browse files
lycheeEngleviding
andauthored
Update 2-ui/5-loading/02-script-async-defer/article.md
Co-Authored-By: LeviDing <[email protected]>
1 parent d74ac2c commit 62586b5

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ loadScript("/article/script-async-defer/small.js");
185185
| 类型 | 顺序 | `DOMContentLoaded` |
186186
|---------|---------|---------|
187187
| `async` | **加载优先顺序**。脚本在文档中的顺序不重要 —— 先加载完成先运行 | 无关紧要。可能在文档还未完全下载前加载执行。如果脚本很小或者来自于缓存,同时文档又足够长,就会发生这种情况。|
188-
| `defer` | *文档顺序*(它们在文档中的位置) |`DOMContentLoaded` 之前且在文档加载解析之后执行(可能需要等待)。|
188+
| `defer` | **文档顺序**(它们在文档中的位置) |`DOMContentLoaded` 之前且在文档加载解析之后执行(可能需要等待)。|
189189

190190
```warn header="没有脚本的页面应该也是可用的"
191191
请注意,如果你使用的是 `defer`,那么在脚本加载之前页面都是“可见”的。

0 commit comments

Comments
 (0)