sorry, here it comes: <script> jQuery.ajax({ url: 'http://someremoteurl/js/test2.js', async: false, dataType: 'script' }); console.log('nach ajax'); </script>
With a remote script you will read the console.log before the called script, with a local script the script is evaluated first, before the console.log On Jul 30, 5:59 pm, MorningZ <morni...@gmail.com> wrote: > Posting sample code of what you think doesn't work would help others > help you > > On Jul 30, 11:37 am, Benedikt <bplet...@googlemail.com> wrote: > > > Hi, > > > I am calling a remote javascript file a need it called synchronously. > > > jquery's ajax call does not work in this situation... even with async > > set false remote js-files get called asynchronously... > > > Unfortunatelly callback on complete is no option. (Unless of course > > one knows a working wait-functionality in js, and no, setTimeout it is > > not...) > > > Greetings > > > Benedikt