I have a javascript file that requests for data from server.The data has to be displayed in CSV format. The data size can reach huge limits. The following is the code I am using in javascript to download the file.
var tmp = document.createElement('a');
var csvData = new Blob([dataString], { type: 'text/csv' });
var csvUrl = URL.createObjectURL(csvData);
tmp.href = csvUrl;
tmp.setAttribute('download', "abc.csv");
tmp.click();
The file size if it reaches 50MB crashes the chrome. The chrome gives "aw snap" error. But I should be able to download data more than 1GB. How to download such huge CSV file without crashing chrome browser.