If I have a synchronous ajax call running, and an asynchronous call is made while that is happening (via setTimeout() ) will the second call stop/interupt/have any impact on the first call?
2 Answers
Afaik, a synchronous call (aka blocking call) should block execution until the call is finished. From that I'd think the async call should start after the sync call has finished?
From the Mozilla Developer Center: You shouldn't use synchronous XMLHttpRequests because, due to the inherently asynchronous nature of networking, there are various ways memory and events can leak when using synchronous requests