|
3 | 3 |
|
4 | 4 | In modern websites, scripts are often "heavier" than HTML: their download size is larger, and processing time is also longer. |
5 | 5 |
|
6 | | -When the browser loads HTML and comes across a `<script>...</script>` tag, it can't continue building the DOM. It must execute the script right now. The same happens for external scripts `<script src="..."></script>`: the browser must wait until the script downloads, execute it, and only after process the rest of the page. |
| 6 | +When the browser loads HTML and comes across a `<script>...</script>` tag, it can't continue building the DOM. It must execute the script right now. The same happens for external scripts `<script src="..."></script>`: the browser must wait for the script to download, execute the downloaded script, and only then can it process the rest of the page. |
7 | 7 |
|
8 | 8 | That leads to two important issues: |
9 | 9 |
|
|
0 commit comments