Efficiently downloading huge files via #JavaScript in the #browser in 2023 still seems the same as in 2013: Open a URL with a Content-Disposition #HTTP header.
#FileSystemAccessAPI is nice but only supported in some #Chromium derivates and presents #UX challenges.
#ServiceWorker hacks à la StreamSaver.js seem to be the next best thing. But it's not free of compatibility issues either and #DX with all that ceremony is not the best.
So good 'ol Content-Disposition it is.
#javascript #browser #http #filesystemaccessapi #chromium #ux #serviceworker #dx