Trigger file download after fetching the data in an efficient way

Is there any other cross-browser way to trigger a file download after fetching the data using fetch? For now I’m using

const response = await fetch(url);
const blob = await response.blob();
const a = document.createElement('a');
a.href = window.URL.createObjectURL(blob);
a.download = 'file';
document.body.appendChild(a);
a.click();
a.remove();

But it first fetches whole file into memory. Is there any way to do it without putting it all into memory first?