Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

async: false ?

israelwebdev
Posts: 21
Joined: Thu May 22, 2014 6:08 pm

async: false ?

Unread post 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");
})
Post Reply