In my application, I have numerous ajax requests. To display a loading symbol while these requests are in progress, I am utilizing jquery ajaxStart and ajaxStop methods. However, for some reason, they seem to not be functioning as expected. Despite searching online, I have been unable to find a suitable solution. The code snippet I am using is:
$( document ).ajaxStart(function() {
Actions.showLoading("Loading");
});
$( document ).ajaxStop(function() {
Actions.hideLoading();
});