[JSMentors] Re: Deferred script and onload event

2011-12-15 Thread geoffreyk
I have settled on doing a check document.readyState coupled with a hasRun variable. Seems to satisfy my needs. document.readyState is supported by all of the browser that I am supporting in this project. On Dec 14, 3:48 pm, Peter van der Zee wrote: > On Wed, Dec 14, 2011 at 11:12 PM, geoffreyk

Re: [JSMentors] Re: Deferred script and onload event

2011-12-14 Thread Peter van der Zee
On Wed, Dec 14, 2011 at 11:12 PM, geoffreyk wrote: > So it seems it is necessary to check if onload has fired. Off looking > for that information now... The easiest way would be to include a simple script tag at the end of the body, right before the closing tag that sets some global which you ca

[JSMentors] Re: Deferred script and onload event

2011-12-14 Thread geoffreyk
That is what I was afraid of. It is difficult to test and I have not been able to find any real information about this. So it seems it is necessary to check if onload has fired. Off looking for that information now... On Dec 14, 8:07 am, Peter van der Zee wrote: > On Fri, Dec 9, 2011 at 1:53 AM,

Re: [JSMentors] RE: Deferred script and onload event

2011-12-14 Thread Peter van der Zee
On Fri, Dec 9, 2011 at 1:53 AM, Geoffrey Knutzen wrote: > If a script is included on an html page with the deferred attribute, and the > script attaches a handler to the window.onload event, and the onload event > fires, will that handler ALWAYS be executed? Depends on actual execution of the scr