3 ms·
>I'm sure there are probably other ways to handle it too. Yes, there is. The simplest solution is called XmlHttpRequest, which has a "progress" event that corr
by meindnoch 2y ago
>I'm sure there are probably other ways to handle it too.
Yes, there is. The simplest solution is called XmlHttpRequest, which has a "progress" event that correctly reports the response body bytes.
You can even make a wrapper for XmlHttpRequest and call it "myFetch()" if you insist.
- leptons 2y agoThat doesn't change the fact that it is possible to use fetch with progress.
- meindnoch 2y agoSure, it is possible to use fetch() with progress, as long as Content-Encoding is not used. Which is precisely what I've said in my first comment.
- leptons 2y agoAnd I've explained why, in most cases, Content-Encoding doesn't need to be used for async download with progress monitoring.