Skip to content

Commit 880659f

Browse files
authored
Merge pull request #527 from petekeller2/master
Update sentence in DOMContentLoaded and scripts
2 parents 14761c4 + c5ca14f commit 880659f

File tree

1 file changed

+1
-1
lines changed
  • 2-ui/3-event-details/10-onload-ondomcontentloaded

1 file changed

+1
-1
lines changed

2-ui/3-event-details/10-onload-ondomcontentloaded/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ When the browser initially loads HTML and comes across a `<script>...</script>`
5353

5454
External scripts (with `src`) also put DOM building to pause while the script is loading and executing. So `DOMContentLoaded` waits for external scripts as well.
5555

56-
The only exception are external scripts with `async` and `defer` attributes. They tell the browser to continue processing without waiting for the scripts. So the user can see the page before scripts finish loading, good for performance.
56+
The only exception are external scripts with `async` and `defer` attributes. They tell the browser to continue processing without waiting for the scripts. This lets the user see the page before scripts finish loading, which is good for performance.
5757

5858
```smart header="A word about `async` and `defer`"
5959
Attributes `async` and `defer` work only for external scripts. They are ignored if there's no `src`.

0 commit comments

Comments
 (0)