News for hackers. Stuff that matters.
Re:Retry XMLHttpRequest Carefully by nemothekid on Tuesday June 28, 2022 @09:07PM (#31915246)
The only thing I’ve seen that I’ve hit recently is fetch doesn’t have a progress API.

Use case: I was fetching a large image from a server to render into a canvas and I wanted to show a progress bar for the download. AFAIK there is no way to do this with fetch

Re:Retry XMLHttpRequest Carefully by easrng on Wednesday June 29, 2022 @03:46AM (#31917505)
You need to consume the body stream manually: https://fetch-progress-demo.glitch.me/