1
$.ajaxSetup({async: false});
1 2 3 4 5
$.ajax({ url: 'http://localhost/', data: {}, async: false })