Skip to content

Commit 09d2e96

Browse files
authored
Update article.md
Sp., small change(s). Looks like someone else fixed main problem w/ "There should be..." sentence before I got here :-)
1 parent 7a6a566 commit 09d2e96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎2-ui/5-loading/02-script-async-defer/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ There are some workarounds to that. For instance, we can put a script at the bot
3131

3232
But this solution is far from perfect. For example, the browser notices the script (and can start downloading it) only after it downloaded the full HTML document. For long HTML documents, that may be a noticeable delay.
3333

34-
Such things are invisible for people using very fast connections, but many people in the world still have slow internet speeds and use a far-from-perfect mobile internet connecion.
34+
Such things are invisible for people using very fast connections, but many people in the world still have slow internet speeds and use a far-from-perfect mobile internet connection.
3535

3636
Luckily, there are two `<script>` attributes that solve the problem for us: `defer` and `async`.
3737

@@ -191,7 +191,7 @@ Please note that if you're using `defer`, then the page is visible *before* the
191191
192192
So the user may read the page, but some graphical components are probably not ready yet.
193193
194-
There should be "loading" indications in proper places, and not-working buttons should be visually disabled, to clearly show the user what's ready and what's not.
194+
There should be "loading" indications in the proper places, and not-working buttons should be visually disabled, to clearly show the user what's ready and what's not.
195195
```
196196

197197
In practice, `defer` is used for scripts that need the whole DOM and/or their relative execution order is important. And `async` is used for independent scripts, like counters or ads. And their relative execution order does not matter.

0 commit comments

Comments
 (0)