Try to work this way: <script> jQuery.ajax({ url: 'http://someremoteurl/js/test2.js', async: false, dataType: 'script' }); </script>
<script> console.log('nach ajax'); </script>
Try to work this way: <script> jQuery.ajax({ url: 'http://someremoteurl/js/test2.js', async: false, dataType: 'script' }); </script>
<script> console.log('nach ajax'); </script>