modify typo
This commit is contained in:
parent
2d5be7b730
commit
98d1dc9645
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ Let's say, we have two deferred scripts: the `long.js` and then `small.js`:
|
|||
|
||||
Browsers scan the page for scripts and download them in parallel, to improve performance. So in the example above both scripts download in parallel. The `small.js` probably finishes first.
|
||||
|
||||
...But the `defer` atribute, besides telling the browser "not to block", ensures that the relative order is kept. So even though `small.js` loads first, it still waits and runs after `long.js` executes.
|
||||
...But the `defer` attribute, besides telling the browser "not to block", ensures that the relative order is kept. So even though `small.js` loads first, it still waits and runs after `long.js` executes.
|
||||
|
||||
That may be important for cases when we need to load a JavaScript library and then a script that depends on it.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue