Simple: We can't.
Not right now anyway, fetch() does not support that, but good old XMLHttpRequest does though.
The function below behaves much like fetch()
, it will return a Promise that will resolve into a Response object.
Just pass a progress
function in the options
parameter.
https://chromestatus.com/feature/5274139738767360?gate=5981250453504000