0
 initComponent: async function () {
        var me = this;
        const isPivotLoaded = Ext.Package.isLoaded('ckeditor');
        if (!isPivotLoaded) {
            var result = await Ext.Package.load('ckeditor').catch(function(error){console.log(error)});
            if (!result) {
                alert('Error loading package!');
                return;
            }
        }

Here i used package to download external files, but it wont wait until file downloaded, how to achieve it in extjs

Prabhakaran
  • 92
  • 2
  • 10
  • 1
    I would not recommend using async function in `initComponent`. Try to display a loading mask, start an Ajax request or use a Promise, remove the mask when it is completed and do what you need to do after the async function. – Peter Koltai Jun 13 '23 at 16:35

0 Answers0