Note that there are some explanatory texts on larger screens.

plurals
  1. POFancybox causing slow load times in IE?
    primarykey
    data
    text
    <p>I'm using Fancybox v.1.3.4 to display videos in an iframe on <a href="http://www.conferenceboard.ca/" rel="nofollow noreferrer">this page</a>. The Fancybox and the videos display fine, but the problem is that, since adding the code, I'm getting a huge pause when loading up the site in IE7/8, similar to <a href="https://stackoverflow.com/questions/5427039/what-is-causing-ie-8-to-pause-on-site-load">this issue</a>—the page loads, and then the UI freezes for a good 4-5 seconds, preventing me from clicking on links, scrolling, or anything else. Here's what I have linked at the top of the page, in the <code>&lt;head&gt;</code>. The jQuery UI pack (incl. UI 1.8.11, UI Widget, UI Mouse, UI Position, and UI Effects w/ Scale) is included mainly to enable other effects that aren't yet loaded on the site, but will be.</p> <pre><code>&lt;script type="text/javascript" src="/lib/jquery/jquery-latest.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/lib/jquery/jquery-ui.custom.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/lib/fancybox/jquery.fancybox-1.3.4.pack.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="/lib/fancybox/jquery.fancybox-1.3.4.css" /&gt; </code></pre> <p>I used YSlow on the page, which suggested moving the script calls to the bottom, but that didn't fix the pause in IE. I then took a look at the HTML DOM during load using IE8's Developer Tools, and the pause seems to occur as the code for the Fancybox is loading; immediately after the pause, the following divs appear at the bottom of the tree:</p> <pre><code>&lt;div id="fancybox-tmp"/&gt; &lt;div id="fancybox-loading" (jQuery attribute here)&gt; ... &lt;/div&gt; &lt;div id="fancybox-overlay"/&gt; &lt;div class="fancybox-ie" id="fancybox-wrap"&gt; ... &lt;/div&gt; </code></pre> <p>That, along with the fact that the problem appeared after I added the fancybox to the page, is why I figured it's a performance problem with Fancybox, but nothing I've tried so far (short of taking the fancybox code off) seems to have had an impact. The latest thing I've tried is removing references to jQuery.ready(), in case that might have helped it to load the fancybox code earlier and thus change the timing of the pause, but it didn't do much good. Not that I really expected it to, but I'm a bit new to jQuery and Fancybox and at this point I'm grasping at straws.</p> <p>What I'm thinking now is that it might be a conflict between Fancybox and one of the other scripts on the page, such as Google Analytics, but I'm not exactly sure how to tell if that's the case, or what to do if that ends up being it. Any ideas from people who know their way around these scripts? Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload