Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 62e8e70

Browse files
Dynamic script async=false condition correction
1 parent bd8e8a9 commit 62e8e70

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
@@ -153,7 +153,7 @@ That is:
153153
- They don't wait for anything, nothing waits for them.
154154
- The script that loads first -- runs first ("load-first" order).
155155

156-
This can be changed if we explicitly set `script.async=true`. Then scripts will be executed in the document order, just like `defer`.
156+
This can be changed if we explicitly set `script.async=false`. Then scripts will be executed in the document order, just like `defer`.
157157

158158
In this example, `loadScript(src)` function adds a script and also sets `async` to `false`.
159159

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /