fix links
This commit is contained in:
parent
beac6836e7
commit
ad96e6ca10
3 changed files with 4 additions and 4 deletions
|
@ -150,12 +150,12 @@ window.addEventListener("unload", function() {
|
|||
```
|
||||
|
||||
- The request is sent as POST.
|
||||
- We can send not only a string, but also forms and other formats, as described in the chapter <info:fetch-basics>, but usually it's a stringified object.
|
||||
- We can send not only a string, but also forms and other formats, as described in the chapter <info:fetch>, but usually it's a stringified object.
|
||||
- The data is limited by 64kb.
|
||||
|
||||
When the `sendBeacon` request is finished, the browser probably has already left the document, so there's no way to get server response (which is usually empty for analytics).
|
||||
|
||||
There's also a `keepalive` flag for doing such "after-page-left" requests in [fetch](info:fetch-basics) method for generic network requests. You can find more information in the chapter <info:fetch-api>.
|
||||
There's also a `keepalive` flag for doing such "after-page-left" requests in [fetch](info:fetch) method for generic network requests. You can find more information in the chapter <info:fetch-api>.
|
||||
|
||||
|
||||
If we want to cancel the transition to another page, we can't do it here. But we can use another event -- `onbeforeunload`.
|
||||
|
|
|
@ -130,7 +130,7 @@ let hello = "world";
|
|||
|
||||
Everything's simple so far, right? There are `<pre>` code snippets in HTML, we highlight them.
|
||||
|
||||
Now let's go on. Let's say we're going to dynamically fetch materials from a server. We'll study methods for that [later in the tutorial](info:fetch-basics). For now it only matters that we fetch an HTML article from a webserver and display it on demand:
|
||||
Now let's go on. Let's say we're going to dynamically fetch materials from a server. We'll study methods for that [later in the tutorial](info:fetch). For now it only matters that we fetch an HTML article from a webserver and display it on demand:
|
||||
|
||||
```js
|
||||
let article = /* fetch new content from server */
|
||||
|
|
|
@ -233,7 +233,7 @@ While `ArrayBuffer`, `Uint8Array` and other `BufferSource` are "binary data", a
|
|||
|
||||
That makes Blobs convenient for upload/download operations, that are so common in the browser.
|
||||
|
||||
Methods that perform web-requests, such as [XMLHttpRequest](info:xmlhttprequest), [fetch](info:fetch-basics) and so on, can work with `Blob` natively, as well as with other binary types.
|
||||
Methods that perform web-requests, such as [XMLHttpRequest](info:xmlhttprequest), [fetch](info:fetch) and so on, can work with `Blob` natively, as well as with other binary types.
|
||||
|
||||
We can easily convert betweeen `Blob` and low-level binary data types:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue