>>     $("<img>").appendTo(this).src( src ).load( f );
> if you replace the main line by:
>        $("<img>").src( src ).load( f ).appendTo(this); 
> then the image will display before the alert() fires.

The problem with appendTo being last is that IE will leak memory if you set
certain attributes (such as an event handler) or attach other elements to
that root node before attaching the root node to the document. If you're not
doing this with a lot of elements you can probably live with the memory leak
more than Safari users can live with the image not being displayed before
the event fires. 


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to