Fancybox "close" hangs/delays in IE7/8

Posted by Kerri on Stack Overflow See other posts from Stack Overflow or by Kerri
Published on 2010-06-10T18:12:01Z Indexed on 2010/06/10 18:12 UTC
Read the original article Hit count: 568

Filed under:
|

I'm having an issue with IE7/8 only on a development site: when closing the Fancybox, there is a major delay, sometimes about ten seconds or so, sometimes much longer (like a minute).

Some things that might be relevant: • Using fancybox 1.3.1

• Works perfectly on all other browsers (FF, Safari, Opera, Chrome)

• The loaded iframe contains a flash "virtual tour"

• There are no errors reported in IE's Dev Toolbar or in DebugBar

• The fancybox renders perfectly in IE, and after it has closed, there is not a problem loading it again. The closing seems to be the only issue. (That, and that it crashed the client's browser once, but I'm inclined to believe that had more to do with the content of the iframe than fancybox). I changed the link to the iFrame to something simpler (google), and it closed with no problem. So it does seem to have something to do with a conflict with the content of the iframe.

The call:

$("a#tourbox").fancybox({
    "width": 750,
    "height"    : 575,
    "autoScale": false,
    "type": "iframe"
}); 

The HTML:

<a id="tourbox" href="http://tour.circlepix.com/tour.htm?id=670335"><img src="sites/all/themes/removed/images/banquets-vtour.jpg" alt="Virtual Tour" /></a>

Here's a link to the page with the problem: http://s93571.gridserver.com/banquets Click on the "Go to 360° Virtual Tour" image. Here's the page it loads: http://tour.circlepix.com/tour.htm?id=670335

I'd greatly appreciate any clues or ideas of what might be the issue. I couldn't find any other discussions with a similar problem. Thanks for any insights!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about fancybox