Re: [whatwg/fetch] WIP: Add a mechanism to fetch to track progress (PR #1843)

Terreii left a comment (whatwg/fetch#1843)

Awsome!
But should/could this work be synced with the [AI/Translation people](https://github.com/webmachinelearning/translation-api)? They are working on a [progress method](https://developer.chrome.com/docs/ai/translator-api#language-support), too.
It would be too bad if we had two (three if you count XMLHttpRequest) methods for progress observing on the web.

```js
const translator = await Translator.create({
  sourceLanguage: 'es',
  targetLanguage: 'fr',
  monitor(m) {
    m.addEventListener('downloadprogress', (e) => {
      console.log(`Downloaded ${e.loaded * 100}%`);
    });
  },
});
```

I think @domenic is responsible for it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1843#issuecomment-3297880629
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1843/c3297880629@github.com>

Received on Tuesday, 16 September 2025 11:11:40 UTC