What do you mean to "application starts"?
If you mean to show components, you probably need to remove the "mainView" config from the initial config of you Application and set it only when your asynchronus preloading is done.
Es.
Code:
launch: function () {
// Check user logged-in
const me = this;
me.loadUser()
.then(function (user) {
me.setMainView({xtype: 'mainview'});
})
.catch(function (status) {
if (status !== 401) {
me.logout();
}
})
.always(function () {
// Remove loading background if any
});
},