Cannot start any async async requests after location.replace is called in webkit browsers

I have a download page that uses location.replace to go to the results page. This request can take a lot of time, so it takes some time to return. In the meantime, I am using ajax long polling requests to refresh the download page with progress information.

This works fine in Firefox and IE, it allows ajax requests to continue to work after location.replace is called.

But with webkit browsers (Chrome, Safari), all ajax requests are canceled after the location.replace request is completed.

Is there a way to make ajax requests while the main window moves to another page in webkit browsers?

+4
source share
1 answer

if you use ajax, maybe you can load the page using an ajax call and just bring its boddy to the active page and change the curl url witch webkit support.

0
source

All Articles