Jquery or javascript event on document header load
<p>Is there any Jquery or javascript event available on document header load and not on document load ?</p>

<p>I created two sites, </p>

<ol>
<li>desktop.example.com is for desktop and </li>
<li>m.example.com for mobile version.</li>
</ol>

<p>Actually I want to detect user-agent and depending on it redirect page to mobile or desktop version of site.</p>
