title: jQuery ready function doesn't work in WordPress
body: <p>I'm using jQuery at WordPress (@the HOME page) and the ready function doesn't work for me. I have a index.php which is including (php) a header, footer and a sidebar. I tested this code:</p>
  
  <pre><code>&lt;script type="text/javascript" src="path_to_jquery/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
     $(document).ready(function() {
        alert ("test text");
     });
  &lt;/script&gt;
  </code></pre>
  
  <p>The alert (with the text <code>"test text"</code>) is just not popping up immediately! It's only popping up after my sidebar has been loaded. This means while I'm seeing the index page (sidebar is not loaded yet) I have to wait a few seconds until the sidebar has finished loading, and only then the jQuery code is executed: the alert is popping up. So the ready function just wont work.
  Can anybody tell me why and how I can solve this problem? Thanks.</p>