Try this.
$.ajax({ url: 'library.js', dataType: 'script', async: false, //if you change this true, you may receive the error success: function () { } });
Try this.
$.ajax({ url: 'library.js', dataType: 'script', async: false, //if you change this true, you may receive the error success: function () { } });