I’m firing off two AJAX requests through jQuery on page load. They are GET requests.
In Chrome, I am finding that the page still indicates it is loading through cursor and status text in bottom left of the window until the AJAX requests have completed.
Ideally, I would like the status text and cursor to not be effected by the AJAX requests at all.
Does anyone know if there is a way to prevent this?
$.ajax({
url:'/createsite/CheckDnsKey?site_id='+site_id+'&r='+Math.random(100000000),
success:function(data){updateDomainDisplay(KEY_INFO_COMPLETE,data)},
error:showDomainError
});
$.ajax({
url:'/createsite/CheckDnsKeyStatus?site_id='+site_id+'&r='+Math.random(100000000),
success:function(data){updateDomainDisplay(STATUS_COMPLETE,data)},
error:showDomainError
});
I don’t think that this is something you have control over. As far as your code is concerned I would improve it like this: