沈志川 (Benx) wrote: > > Why not use document.createElement("script") !? >
Because we want jQuery to wait until the script is loaded and evaluated, so it's possible to do something upon completion, like continuing the normal flow of the program. This is necessary for example for writing a require like the one in PHP. -- View this message in context: http://www.nabble.com/getScript-error-tf2652417.html#a7514393 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/