Hacker News new | ask | show | jobs
by nemothekid 1459 days ago
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

1 comments

You need to consume the body stream manually: https://fetch-progress-demo.glitch.me/