Skip to content

Commit 6ea208b

Browse files
authored
Merge pull request #2116 from amit1702/master
Dynamic script document order execution is done with async=false
2 parents b3a826e + 62e8e70 commit 6ea208b

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)