Apr 13 Webkit browsers and ajax redirections

tags: webkit ajax chrome | comments

In one of my last tasks I have this page where an automatic download starts. I set jquery to wait for the page to load and then start an ajax request for the download. Everything was ok, except Chrome did not show any image from the CSS. The solution in the end was to use the old iframe tag and no fancy js.

<iframe src ="<%= path_to_download %>" style="display:none;" />

Apparently that’s a known issue with webkit browsers that they stop all background downloads when an ajax request occurs. And yes, Safari also suffers from this.

blog comments powered by Disqus