1

I have an AJAX call setting some session variables on a server.

When the session variables are set, in the success callback, I'm opening a new window to the appropriate page.

window.open("../reports/" + data.d, "report");

Sometimes, it takes a long time to render. Making it render faster is, at this time, beyond my control.

My concern is that as it attempts to render the html in this window, it's blocking all other ajax requests. It queues them up and once the window is finally rendered, they execute.

I've already tried using setTimeout but it doesn't seem to work (apparently because jQuery.ajax is already occupying the "thread").

Any ideas?

William
  • 1,517
  • 1
  • 12
  • 26

1 Answers1

0

Most browsers limit the number of concurrent connections

See How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?

and browserscope's chart

Community
  • 1
  • 1
jermel
  • 2,326
  • 21
  • 19
  • I don't think this is the case here. Its in the success callback at this point and if it did 'count' as an open connection it is the only one. – William Dec 10 '12 at 23:42