Merge pull request #2116 from amit1702/master

Dynamic script document order execution is done with async=false
This commit is contained in:
Ilya Kantor 2020-09-23 12:47:27 +03:00 committed by GitHub
commit 6ea208bfa3
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`.