title: jQuery $(document).ready() failing in IE6 but only after clearing Temporary Internet Files
body: <p>I'm experiencing problems with $(document).ready <em>not getting executed</em> in IE6, but only after clearing the Temporary Internet Files (so in fact the very first time this page is loaded). On refreshing the page or on later page loads, everything works fine.</p>
  
  <p>This is the current setup:</p>
  
  <ul>
  <li><p>Portal page with frames, this portal page also has a window.load method (maybe we have a race problem with jQuery ready ??):</p>
  
  <pre><code>window.onload = function () {
  try {
      expireCookie("COOKIE%2DID");
      loadMenu();
  } catch (pcbException) {
      reportError(pcbException);
  }
  }
  </code></pre>
  
  <ul>
  <li>In this portal page, our current page gets loaded. At the bottom of this page we have:</li>
  </ul></li>
  </ul>
  
  <blockquote>
    <p>&lt;script language="javascript"&gt;</p>
    
    <p>try{ </p>
    
    <p>$("#CR").remove();</p>
    
    <p>}
     catch(ex){
        }</p>
    
    <p>$(document).ready(function() {
      alert(typeof $); // check if method is getting executed
      RendererPageIsLoading(); // loads data in comboboxes and hides divs
       });</p>
    
    <p>&lt;/script&gt;
    &lt;/body&gt;</p>
  </blockquote>
  
  <p>I'm using the latest version of jQuery (1.4.2).
  <strong>Edit</strong>: jquery is getting loaded in the head section of the current page:</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript" src="https://fulldomain/js/jquery.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Following topic didn't bring any solutions:
  <a href="https://stackoverflow.com/questions/463800/jquery-document-ready-failing-in-ie6">jQuery $(document).ready() failing in IE6</a></p>