0

In my app, I am loading two iframe simultaneously , namely main-iframe and comment-iframe,comment-iframe is visible to the users only when main-iframe is loaded. once the main-iframe is loaded I changed the src attribute of comment-iframe. howerver sometimes,main-iframe keeps loading endlessly, with status=cancel message in developer tool of chrome.i also found this issue on safari as well.(this issue is not coming in firefox and IE)

Thanks

Amit
  • 15,217
  • 8
  • 46
  • 68
user2274074
  • 991
  • 2
  • 9
  • 25

1 Answers1

0

I had a similar problem when I tried to change the src of an iframe on submit of a form of the main page: the iframe loading was canceled by chrome.

I think this is related to the fact that form post will change the DOM (as also noted here) of the the page that hosts the iframe.

Maybe, it's only a matter of timing: changing the src the comment-iframe alter the DOM of the page that hosts the iframes too early, so it stops loading the main-frame.

Community
  • 1
  • 1
Enrico Sanguin
  • 433
  • 3
  • 12