const files = ['doc1.pdf', 'doc2.pdf', 'doc3.pdf']; let index = 0; const interval = setInterval(() => { if (index < files.length) { downloadFile(files[index], files[index]); index++; } else { clearInterval(interval); } }, 500); // 500ms delay between files Use code with caution. Important Considerations Download File Using JavaScript/jQuery - Stack Overflow
function downloadFile(fileUrl, fileName) { $(' ', { href: fileUrl, download: fileName }).appendTo('body').get(0).click(); // Clean up $('a[download]').remove(); } Use code with caution. jquery download files
Use xhrFields to request a blob response. const files = ['doc1