Avoid "[Ext.Loader] Synchronously loading... consider adding Ext.require... above Ext.onReady" when using Ext.application

If you're like me and you're trying to get a grip on using ExtJS 4's new MVC architecture, you probably ran into this warning by Ext.Loader.

The thing is, when you're using Ext.application, the launch() function is essentially your Ext.onReady.

I had to dig through the source but found that you can put a "requires" array config option and it'll get rid of the warning for you.

Like this:

About

Web developer for Teleserv.ph. I'm @bryanzarzuela on Twitter.

TwitterFacebook