Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e558805

Browse files
committed
fixes #2326
1 parent 6ec4c4f commit e558805

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎5-network/03-fetch-progress/article.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,5 @@ Let's explain that step-by-step:
110110
At the end we have the result (as a string or a blob, whatever is convenient), and progress-tracking in the process.
111111

112112
Once again, please note, that's not for *upload* progress (no way now with `fetch`), only for *download* progress.
113+
114+
Also, if we the size is unknown, we should check `receivedLength` in the loop and break it once it reaches a certain limit. So that the `chunks` won't overflow the memory.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /