[jQuery] Re: Does the "ready" event wait for JavaScript files to be downloaded?

2009-03-12 Thread Angus
Thanks to both of you. Your answers are very helpful. Sincerely, Angus On Mar 10, 9:22 pm, Iair Salem wrote: > I think you can use the getScript method (http://docs.jquery.com/Ajax/ > jQuery.getScript) > > Although It does not work perfect in Safari 2 (Hey, Safari 4 is almost > here!) you can

[jQuery] Re: Does the "ready" event wait for JavaScript files to be downloaded?

2009-03-10 Thread Iair Salem
I think you can use the getScript method (http://docs.jquery.com/Ajax/ jQuery.getScript) Although It does not work perfect in Safari 2 (Hey, Safari 4 is almost here!) you can use the callback function as the ready function you were asking for. It works all between the same domain, but If you want

[jQuery] Re: Does the "ready" event wait for JavaScript files to be downloaded?

2009-03-10 Thread ricardobeat
If the scripts are not present at page load they will load after ready has already fired. You'll have to use a callback (like in JSONP) to fire when a script has loaded. There was a posting recently about a plugin that loads js in an iframe and uses the body onload event, but I can't remember it's