[jQuery] Re: SOT: execute JS before a specific image loads

2009-05-21 Thread Andy Matthews
Sent: Thursday, May 21, 2009 12:32 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SOT: execute JS before a specific image loads Hmm... This is weird... I posted a reply at 3PM yesterday and it doesn't look like it made it onto the group. (You didn't see it, did you?) So here goes a

[jQuery] Re: SOT: execute JS before a specific image loads

2009-05-21 Thread Michael Geary
ke _ From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Andy Matthews Sent: Thursday, May 21, 2009 7:08 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SOT: execute JS before a specific image loads John... The original intent was to render an img tag

[jQuery] Re: SOT: execute JS before a specific image loads

2009-05-21 Thread Andy Matthews
ay 20, 2009 6:08 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SOT: execute JS before a specific image loads You won't be able to intercept the image before it is loaded but you can block it from being rendered. Remember that JavaScript relies on the DOM. The DOM isn't fully-d

[jQuery] Re: SOT: execute JS before a specific image loads

2009-05-21 Thread John Crout
You won't be able to intercept the image before it is loaded but you can block it from being rendered. Remember that JavaScript relies on the DOM. The DOM isn't fully-defined for the page, until all of it has loaded. But you can hide it by setting its visibilitiy to "hidden", and keep the browser

[jQuery] Re: SOT: execute JS before a specific image loads

2009-05-20 Thread Michael Geary
Use a tag for the non-JavaScript case, and a tag with document.write() for the JavaScript case: