title: How to load jQuery before DOM is ready
body: <p>I want to load some jQuery code before the DOM is ready. I want to make a flash file transparant as the DOM loads. I was going to use something like this but Flash is initilized before the DOM loads.</p>
  
  <pre><code>jQuery(document).ready(function(){
      jQuery('object:not(:has(wmode))').each(function(){
          jQuery(this).attr('wmode', 'transparent');
          jQuery(this).prepend('&lt;param name="wmode" value="transparent"&gt;');
          jQuery(this).children('embed').attr('wmode', 'transparent');
      });
  });
  </code></pre>
  
  <p>Any ideas on how to do this?</p>
  
  <hr>
  
  <h2>EDIT</h2>
  
  <p>Hey guys, thanks for the help, Basically, The flash content is coming from our Advertisement Manager, which stupidly enough, doesn't allow direct editing of the HTML, as to add the required wmode attributed into the specific tags...</p>
  
  <p>So Javascript is my only option...</p>