I am using jQuery in WordPress (@HOME page) and the finished function does not work for me. I have an index.php that includes a (php) header, footer and sidebar. I checked this code:
<script type="text/javascript" src="path_to_jquery/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function() { alert ("test text"); }); </script>
A warning (with the text "test text" ) does not appear immediately! It appears only after loading the sidebar. This means that while I see the index page (the sidebar is not loaded yet), I have to wait a few seconds until the sidebar finishes loading, and only then will jQuery code be executed: a warning appears. So the finished function just doesn't work. Can someone tell me why and how can I solve this problem? Thanks.
wordpress
Michael
source share