I'm confused by this synchronous jquery ajax request. The ajax loader doesn't show until after the ajax call is complete. I'm well aware that the synchronous request will block the UI, but why does it start blocking before that line of code has been hit? I must be misunderstanding something fundamental about execution order.
$("#ajax-loader").show(1, function(){
$.ajax({
url: xxx,
type: "POST",
async: false,
success: function (data) {
hideAjaxLoader();
}
});
});