http://docs.jquery.com/Ajax#Options
"async (Boolean) - By default, all requests are sent asynchronous (e.g. this is set to true by default). If you need synchronous requests, set this option to false. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active." Please pay tight heed to the Note. On Aug 15, 2:46 pm, xavier <[EMAIL PROTECTED]> wrote: > Hello, > > Following Erik suggestion, I'm using getScript to load a script. > > The load is asynchronous, is there a way to wait until the script is > loaded and the functions it provides are available ? > > function init () { > do the init of...; > > } > > jQuery(document).ready(function() > { > if(!$.isFunction($.fn['tablesorter'])) { > $.getScript('/path/...', function() { > init (); > }); > > } else { > init (); > } > > Xavier