async: false ?
Posted: Thu Aug 03, 2017 3:03 pm
Any reason why a majority of the $.ajax calls use async: false ?
Any harm in turning on async?
The UI can be blocked using an approach like this:
https://stackoverflow.com/questions/196 ... ing-jquery
but not for all ajax calls. Supplement the nuBuildForm function for example in nucommon.js
with
and
Any harm in turning on async?
The UI can be blocked using an approach like this:
https://stackoverflow.com/questions/196 ... ing-jquery
but not for all ajax calls. Supplement the nuBuildForm function for example in nucommon.js
with
Code: Select all
window.loading = true;
$('body').addClass("loading");
Code: Select all
.always(function(data){
window.loading = false;
$('body').removeClass("loading");
})