Hasty Briefsbeta

Fetch streams are great, but not for measuring upload/download progress

13 hours ago
  • #streams
  • #progress-events
  • #fetch
  • Fetch streams are not ideal for measuring upload/download progress due to inaccuracies.
  • Response streams allow processing data chunk-by-chunk but struggle with compressed content.
  • Request streams enable parallel processing and uploading but are unreliable for progress tracking.
  • Using streams for progress measurement may limit future browser optimizations.
  • XHR remains the best current method for accurate upload/download progress events.
  • A future Fetch API proposal aims to include progress events for both uploads and downloads.