I have the following code:
var self = this;
jQuery('#' + loadingAlert.id).promise()
.done(() => self.showProgress())
.done(window.setTimeout(() => self.someMethod(), 100));
.done(() => self.hideProgress());
The someMethod function makes the browser so busy that it freezes the loading gif. Is there any work around for this so that my loading gif moves while the browser is busy (note: cannot click on anything as it is very busy);