I need to have a callback in this function but It doesn't work.

Code:
Ext.Loader.loadScript('my.js',function(){
  console.log('ok'); //?????????
});