I'm building a web app which handle large amount of data. After user logged in, I'm making several requests to my server, in order to get all needed data. I need those requests to be sync, so I'm can remove my loader from the site after it finishes.
This is what i'm trying to do:
$.ajaxSetup({async: false});
myFirstSyncFunction();
mySecondSyncFunction();
myThirdSyncFunction();
$.ajaxSetup({async: true});
This code block returns "No transport" in IE10 for each request. If I remove both lines of "ajaxSetup", everything works good (but in async way). Also, in chrome, FF and Safari it works perfectly (with or without those lines).
Any suggestions?