Merge pull request #2633 from joaquinelio/patch-4

"inserts into" instead of "appends to"
This commit is contained in:
Ilya Kantor 2021-06-16 15:00:57 +03:00 committed by GitHub
commit 9680c673a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ function loadScript(src) {
}
```
It appends to the document the new, dynamically created, tag `<script src="…">` with given `src`. The browser automatically starts loading it and executes when complete.
It inserts into the document a new, dynamically created, tag `<script src="…">` with the given `src`. The browser automatically starts loading it and executes when complete.
We can use this function like this: