What is the earliest and latest events that jquery can hook into?
<p>I've written a tiny plugin that gets the page load/render time.  It collects the finish time at  $(document).ready and I've put the code snippet that collects the start time right after the <code>&lt;title&gt;</code> tag. </p>

<p>I'd like this to be less obtrusive, so it seems there should be an earlier event than .ready where I can collect the earliest measurable page start time.</p>

<p>Here is the currently obtrusive javascript</p>

<pre><code>&lt;title&gt;&lt;/title&gt;
&lt;script type="text/javascript"&gt;
    var startTime = (new Date()).getTime();
&lt;/script&gt;
</code></pre>

<p>Here is the plugin:</p>

<pre><code>(function ($) {

    $(document).ready(function () {
        var endTime = (new Date()).getTime();
        var millisecondsLoading = endTime - startTime;

        $.get('hicmah.ashx?duration=' + millisecondsLoading, function (data) {
        });
    });

})(jQuery);
</code></pre>
