This commit is contained in:
Ilya Kantor 2022-06-18 22:06:38 +03:00
parent 9787f3617d
commit 77d8c7373f

View file

@ -77,6 +77,8 @@ function loadScript(src, *!*callback*/!*) {
}
```
The `onload` event is described in the article <info:onload-onerror#loading-a-script>, it basically executes a function after the script is loaded and executed.
Now if we want to call new functions from the script, we should write that in the callback:
```js