jQuery CDN
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
Nitria
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
//
//With jquery.fileDownload.js
//custom use with promises
//
$(document).on("click", "a.fileDownloadPromise", function () {
$.fileDownload($(this).prop('href'))
.done(function () { alert('File download a success!'); })
.fail(function () { alert('File download failed!'); });
return false; //this is critical to stop the click event which will trigger a normal file download
});