Might be a little late, but... you failed to include the full
description for $.getScript(), or it has changed since you posted this
question. The full description is as follows:

"Before jQuery 1.2, getScript was only able to load scripts from the
same domain as the original page. As of 1.2, you can now load
JavaScript files from any domain. Warning: Safari 2 and older is
unable to evaluate scripts in a global context synchronously. If you
load functions via getScript, make sure to call them after a delay."

The sentence that you mentioned is preceded by "Warning:"; thus, it
looks like that sentence is tied to the warning. Specifically, for
Safari 2 (and earlier), we cannot guarantee that the callback will be
called after the script has executed via synchronous loading. So, for
Safari 2 (and older), you should take this into consideration when
writing your callback.

On Mar 25, 5:03 am, Maujor <css.mau...@gmail.com> wrote:
> The documentation for $.getScript()  function explicit says:
> *If you load functions viagetScript, make sure to call them after a delay.*
> [1]
>
> It is suppose that callback functions are always called after a request.
> So, it is suppose too that this requeriment is valid for $.get(), $.post,
> $.getJSON etc?
> But documentation doesn't mention the requeriment for other kinds of
> requests.
>
> Or, am I missing something?
>
> Can someone explain me the needs for this requirement?
> What does it means exactly?
>
> [1]http://docs.jquery.com/Ajax/jQuery.getScript#urlcallback
> --
> View this message in 
> context:http://www.nabble.com/Delay-for-%24get.Script%28%29-callback-function...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to