Skip to content

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

Diff for: 5-network/03-fetch-progress/article.md

+2
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)