From 0bdacaf9fcba4c2c4751697cdb6fce0f475c9231 Mon Sep 17 00:00:00 2001 From: Vse Mozhe Buty Date: Sun, 22 Nov 2020 12:35:10 +0200 Subject: [PATCH] Fis typo in 2.5.2 (Scripts: async, defer) --- 2-ui/5-loading/02-script-async-defer/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/5-loading/02-script-async-defer/article.md b/2-ui/5-loading/02-script-async-defer/article.md index 2f9d45e9..93c32a7f 100644 --- a/2-ui/5-loading/02-script-async-defer/article.md +++ b/2-ui/5-loading/02-script-async-defer/article.md @@ -103,7 +103,7 @@ The `async` attribute means that a script is completely independent: - `DOMContentLoaded` may happen both before an async script (if an async script finishes loading after the page is complete) - ...or after an async script (if an async script is short or was in HTTP-cache) -In other words, `async` scripts load in the background and run when ready. The DOM and other scripts don't wait for them, and they don't wait for anything. A fully independent script that runs when loaded. As simple, at it can get, right? +In other words, `async` scripts load in the background and run when ready. The DOM and other scripts don't wait for them, and they don't wait for anything. A fully independent script that runs when loaded. As simple, as it can get, right? Here's an example similar to what we've seen with `defer`: two scripts `long.js` and `small.js`, but now with `async` instead of `defer`.