[jQuery] Do something as soon as an element has loaded? (Before document ready)

[jQuery] Do something as soon as an element has loaded? (Before document ready)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hi all
I need to fire an event/run a method once an element (in this case a
div with a list inside) has loaded, but before $(document).ready().
I'd like to be able to use simple jQuery objects... something like:
$('#mydiv').hasloaded(function(){
    //do something here
});
$(document).ready(function(){
    //do the rest of the "window.onload" events here
});
I've been looking through the source, and it seems to me that doing
$('#mydiv').ready(function(){}); will fire when the whole DOM has
loaded, which will probably be a little late for me.
</font></font><font size="-1"><font face="Helvetica, Arial, sans-serif">Any
idea on how I can do this?
Phill
</font></font>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/