title: document.ready not executing on every load
body: <p>I have a strange problem. I have a jQuery document.ready function executing some script on the page. When I was testing it through opening the file with firefox/opera it worked. When I uploaded it to the server (I tried both my home apache and my shared hosting) it only works once in 10 loads maybe.</p>
  
  <p>What could be the problem?</p>
  
  <p>Thanks beforehand</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Here is the code. It configures the correct size of side panels according to central panel.</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
           $(document).ready(function(){
              // Get natural heights
              var cHeight = $("#content").height();   
              var nHeight = $("#left").height() - $("#footer").height() - $("#header").height() - 10; 
  
              // Assign maximum height to all columns
              $("#leftcontent").height(nHeight);
              $("#rightcontent").height(nHeight);
              $("#left").height(cHeight);
              $("#right").height(cHeight);
           });            
      &lt;/script&gt;
  </code></pre>