You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 5-network/03-fetch-progress/article.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,3 +110,5 @@ Let's explain that step-by-step:
110
110
At the end we have the result (as a string or a blob, whatever is convenient), and progress-tracking in the process.
111
111
112
112
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