From be9dbd7545b586fefd19d386077c8f0961681cb4 Mon Sep 17 00:00:00 2001 From: yuenm18 <11188600+yuenm18@users.noreply.github.com> Date: Thu, 2 May 2019 22:09:05 -0700 Subject: [PATCH] Fixed typos in defer example --- 2-ui/5-loading/02-script-async-defer/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 f5c3faeb..b5fab5c0 100644 --- a/2-ui/5-loading/02-script-async-defer/article.md +++ b/2-ui/5-loading/02-script-async-defer/article.md @@ -75,14 +75,14 @@ Deferred scripts keep their relative order, just like regular scripts. So, if we have a long script first, and then a smaller one, then the latter one waits. ```html - - + + ``` ```smart header="The small script downloads first, runs second" 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 makes it first. -But the specification requres scripts to execute in the document order, so it waits for `long.js` to execute. +But the specification requires scripts to execute in the document order, so it waits for `long.js` to execute. ``` ```smart header="The `defer` attribute is only for external scripts"