Browser freeze while ajax call in action

Posted by kaivalya on Stack Overflow See other posts from Stack Overflow or by kaivalya
Published on 2010-06-07T13:55:36Z Indexed on 2010/06/07 14:12 UTC
Read the original article Hit count: 347

Filed under:
|
|
|

I have a ASP.NET Web App. I notice that while a simple ajax call(see below) is in process, web application does not respond to any action that I try on a different browser.

$.ajax({
        type: "GET",
        async: true,
        url: "someurl",
        dataType: "text",
        cache: false,
        success: function(msg){
            CheckResponse(msg);
        }
    });

This happens when I open two firefox or two IE. I run the function that does the ajax call on first browser and till the response of the ajax is returned, I cannot do anything on the second browser on the same site. No breakpoints are hit on the server from the second browser till initial ajax is completed. It hangs for any click etc..

The hang on the second browser ends immediately after the ajax call is completed on the first one.

This behavior is not observed if I try the same on IE and Firefox side by side. Only happen with IE & IE or FF & FF side by side

Appreciate if you can help me see what I am missing here.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about JavaScript