Features of writing an unbuffered asynchronous algorithm for receiving data in JavaScript

<p>The article discusses two common approaches to implementing file downloads in JavaScript web applications: using the HTML <a> tag and asynchronous downloading with AJAX (fetch/XHR). The author conducts a comparative analysis of their advantages and disadvantages, paying special attention to the impact of the user's device RAM on the reliability of each method. The main emphasis is on the problem of failures when using the response.blob() method to download large files under limited memory conditions. An alternative method using response.bytes() is proposed as an effective solution, providing buffered, step-by-step downloading and increasing the stability of the application. The material will be useful for front-end developers faced with the task of implementing a reliable and controlled file download process.</a></p>

Authors

Institutions

Publication Details

Journal
Modelling and Data Analysis
Published
2025-09-22
DOI
https://doi.org/10.17759/mda.2025150312
Primary Topic
Advanced Data Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Features of writing an unbuffered asynchronous algorithm for receiving data in JavaScript

S.S. Isakov
Modelling and Data Analysis
Advanced Data Processing Techniques
article

Features of writing an unbuffered asynchronous algorithm for receiving data in JavaScript

S.S. Isakov
article en

Abstract

<p>The article discusses two common approaches to implementing file downloads in JavaScript web applications: using the HTML <a> tag and asynchronous downloading with AJAX (fetch/XHR). The author conducts a comparative analysis of their advantages and disadvantages, paying special attention to the impact of the user's device RAM on the reliability of each method. The main emphasis is on the problem of failures when using the response.blob() method to download large files under limited memory conditions. An alternative method using response.bytes() is proposed as an effective solution, providing buffered, step-by-step downloading and increasing the stability of the application. The material will be useful for front-end developers faced with the task of implementing a reliable and controlled file download process.</a></p>

Modelling and Data AnalysisVol. 15(3)
Moscow State University of Psychology & Education (RU)
Openalex Percentile: Top 68%
Advanced Data Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.