Page 1 of 1

async: false ?

Posted: Thu Aug 03, 2017 3:03 pm
by israelwebdev
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

Code: Select all

            window.loading = true;
			$('body').addClass("loading");
and

Code: Select all

.always(function(data){
				window.loading = false;
				$('body').removeClass("loading");
})