From 62e8e7098740c8f87d3a8871972afe77a2ab202f Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Sun, 13 Sep 2020 19:30:02 +0530 Subject: [PATCH] Dynamic script async=false condition correction --- 2-ui/5-loading/02-script-async-defer/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/5-loading/02-script-async-defer/article.md b/2-ui/5-loading/02-script-async-defer/article.md index 1c02c1ea..ae92dee8 100644 --- a/2-ui/5-loading/02-script-async-defer/article.md +++ b/2-ui/5-loading/02-script-async-defer/article.md @@ -153,7 +153,7 @@ That is: - They don't wait for anything, nothing waits for them. - The script that loads first -- runs first ("load-first" order). -This can be changed if we explicitly set `script.async=true`. Then scripts will be executed in the document order, just like `defer`. +This can be changed if we explicitly set `script.async=false`. Then scripts will be executed in the document order, just like `defer`. In this example, `loadScript(src)` function adds a script and also sets `async` to `false`.