I have an iframe code that exports display grid as csv by calling html file called exporter.html. Right now, iframe is doing all the work at once which is causing unresponsiveness while exporting large data. I am trying to find a way to set timeouts in this iframe code so that the program becomes responsive while exporting large data. Can someone suggest some idea?
var iframe = document.createElement('iframe');
iframe.id = "_hidden_iframe_exporter";
iframe.style.display = "none";
iframe.src = 'exporter.html?csv';
iframe.hidden = true;
document.body.appendChild(iframe);