Skip to content

Commit 0490fa2

Browse files
committed
Fix typos
1 parent 928f42d commit 0490fa2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎1-js/13-modules/01-modules-intro/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ That's the correct variant:
8686

8787
[codetabs src="scopes-working" height="140" current="hello.js"]
8888

89-
In the browser, independant top-level scope also exists for each `<script type="module">`:
89+
In the browser, independent top-level scope also exists for each `<script type="module">`:
9090

9191
```html run
9292
<script type="module">
@@ -263,7 +263,7 @@ When using modules, we should be aware that HTML-document can show up before the
263263
264264
### Async works on inline scripts
265265
266-
Async attribute `<script async type="module">` is allowed on both inline and external scripts. Async scripts run immediately when imported modules are processed, independantly of other scripts or the HTML document.
266+
Async attribute `<script async type="module">` is allowed on both inline and external scripts. Async scripts run immediately when imported modules are processed, independently of other scripts or the HTML document.
267267
268268
For example, the script below has `async`, so it doesn't wait for anyone.
269269

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ The `defer` attribute is ignored if the script has no `src`.
9292
9393
## async
9494
95-
The `async` attribute means that a script is completely independant:
95+
The `async` attribute means that a script is completely independent:
9696
9797
- The page doesn't wait for async scripts, the contents is processed and displayed.
9898
- `DOMContentLoaded` and async scripts don't wait each other:
@@ -120,7 +120,7 @@ So, if we have several `async` scripts, they may execute in any order. Whatever
120120
2. `DOMContentLoaded` may happen both before and after `async`, no guarantees here.
121121
3. Async scripts don't wait for each other. A smaller script `small.js` goes second, but probably loads before `long.js`, so runs first. That's called a "load-first" order.
122122

123-
Async scripts are great when we integrate an independant third-party script into the page: counters, ads and so on.
123+
Async scripts are great when we integrate an independent third-party script into the page: counters, ads and so on.
124124

125125
```html
126126
<script async src="https://google-analytics.com/analytics.js"></script>

‎9-regular-expressions/20-regexp-unicode/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ If we forget the `u` flag and occasionally use surrogate pairs, then we can get
8080

8181
Normally, regexps understand `[a-z]` as a "range of characters with codes between codes of `a` and `z`.
8282

83-
But without `u` flag, surrogate pairs are assumed to be a "pair of independant characters", so `[𝒳-𝒴]` is like `[<55349><56499>-<55349><56500>]` (replaced each surrogate pair with code points). Now we can clearly see that the range `56499-55349` is unacceptable, as the left range border must be less than the right one.
83+
But without `u` flag, surrogate pairs are assumed to be a "pair of independent characters", so `[𝒳-𝒴]` is like `[<55349><56499>-<55349><56500>]` (replaced each surrogate pair with code points). Now we can clearly see that the range `56499-55349` is unacceptable, as the left range border must be less than the right one.
8484

8585
Using the `u` flag makes it work right:
8686

0 commit comments

Comments
 (0)