Re: [JSMentors] Onload event is not fired for dynamic script insertion

2011-12-08 Thread Diego Perini
On Thu, Dec 8, 2011 at 1:28 AM, Peter van der Zee wrote: > Even though your script should run synchronous, it might not. The > callback might have actually fired before your script got a chance to > intercept it. I remember IE could prematurely fire the onload event > for an image in primed cache

Re: [JSMentors] Onload event is not fired for dynamic script insertion

2011-12-07 Thread Peter van der Zee
Even though your script should run synchronous, it might not. The callback might have actually fired before your script got a chance to intercept it. I remember IE could prematurely fire the onload event for an image in primed cache if you set the .src before setting the .onload. Maybe the same is