This code is working perfectly on mozila(103.0) but, it is not working on chrome or microsoft edge.
$('#loading').bind('ajaxStart', function () {
$(this).show();
}).bind('ajaxStop', function () {
$(this).hide();
});
on console it gives Notice :
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience.
'
in the seelctor of your first jQuery object 2) What version of jQuery are you using?bind()
was deprecated a long time ago. Update jQuery and useon()
instead.