Dynamic script async=false condition correction

This commit is contained in:
Amit Kumar 2020-09-13 19:30:02 +05:30 committed by GitHub
parent bd8e8a9bdd
commit 62e8e70987
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.