IE page redirect hanging

Posted by 08Hawkeye on Stack Overflow See other posts from Stack Overflow or by 08Hawkeye
Published on 2010-04-30T16:51:11Z Indexed on 2010/04/30 16:57 UTC
Read the original article Hit count: 341

My app does a POST to my local server to create a new DOM element, comes back and should redirect to the same page with the new element.

The problem is when it gets back from the server, the app hangs for almost 2 minutes before doing the redirect. I've isolated the issue to the fact that IE seems to have trouble with my tree structure of 100+ DOM elements, and I can see in HTTPWatch that it sits in a "Blocked" call for the 2 minutes before doing the redirect. Our temporary workaround is to set the inner-html of the tree structure to an empty string before submitting, thus eliminating the heavy DOM lifting, but we shouldn't need to do this (firefox has no trouble with the redirect).

Question 1: Is there a better fix for this issue? Question 2: Why does ANY page care about the content before a redirect if it's going to be refreshed anyway?

Thanks yall

//sw

© Stack Overflow or respective owner

Related posts about dom

Related posts about redirect