Skip to content

Commit 61bd2b3

Browse files
author
Xin Nie
committed
fix: fix markdown highlight
1 parent a4a8408 commit 61bd2b3

File tree

1 file changed

+1
-1
lines changed
  • 2-ui/5-loading/01-onload-ondomcontentloaded

1 file changed

+1
-1
lines changed

2-ui/5-loading/01-onload-ondomcontentloaded/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ Page load events:
277277
- Images and other resources may also still continue loading.
278278
- The `load` event on `window` triggers when the page and all resources are loaded. We rarely use it, because there's usually no need to wait for so long.
279279
- The `beforeunload` event on `window` triggers when the user wants to leave the page. If we cancel the event, browser asks whether the user really wants to leave (e.g we have unsaved changes).
280-
- `The unload` event on `window` triggers when the user is finally leaving, in the handler we can only do simple things that do not involve delays or asking a user. Because of that limitation, it's rarely used. We can send out a network request with `navigator.sendBeacon`.
280+
- The `unload` event on `window` triggers when the user is finally leaving, in the handler we can only do simple things that do not involve delays or asking a user. Because of that limitation, it's rarely used. We can send out a network request with `navigator.sendBeacon`.
281281
- `document.readyState` is the current state of the document, changes can be tracked in the `readystatechange` event:
282282
- `loading` -- the document is loading.
283283
- `interactive` -- the document is parsed, happens at about the same time as `DOMContentLoaded`, but before it.

0 commit comments

Comments
 (0)