jQuery/JavaScript and document.ready() mid-document
<p>I have looked around for similar questions and I couldn't find an answer...</p>

<p>I'd like for one particular page of my web site to import a file ("clock.js"):</p>

<pre><code>&lt;script type="text/javascript" src="clock.js"&gt;&lt;/script&gt;
</code></pre>

<p>and, on load, to run the function tick() from that page.. in the body of the document.</p>

<p>I know I am supposed to do it this way:</p>

<pre><code>$(document).ready(tick);
</code></pre>

<p>But it doesn't work and I suspect it's because these lines of code are in the middle of the document.</p>

<p>Any suggestions?</p>
