Commit d55a764e authored by jaubourg's avatar jaubourg

When IE6 & IE7 serve from the cache in async mode, resolves the request...

When IE6 & IE7 serve from the cache in async mode, resolves the request asynchronously. Fixes #11778.
parent 9efe4d03
...@@ -190,11 +190,13 @@ if ( jQuery.support.ajax ) { ...@@ -190,11 +190,13 @@ if ( jQuery.support.ajax ) {
} }
}; };
// if we're in sync mode or it's in cache if ( !s.async ) {
// and has been retrieved directly (IE6 & IE7) // if we're in sync mode we fire the callback
// we need to manually fire the callback
if ( !s.async || xhr.readyState === 4 ) {
callback(); callback();
} else if ( xhr.readyState === 4 ) {
// (IE6 & IE7) if it's in cache and has been
// retrieved directly we need to fire the callback
setTimeout( callback, 0 );
} else { } else {
handle = ++xhrId; handle = ++xhrId;
if ( xhrOnUnloadAbort ) { if ( xhrOnUnloadAbort ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment