Take too much time when boot the app(pending state)

Hi I’m making an app with ionic framework.

When I boot the app, I put an $ionicLoading pane untill everything is ready.

But when I boot the app, it takes like 20 seconds to hide the $ionicLoading pane.

I watched it at chrome developer mode, and I found that some pages are in pending state very long.

Here is the capture pages.

The checkPassword.html and initPassword.html pages are files in templates folder that I’m using in the app.

I have no Idea at all why does it take so long, and even I didn’t call it on the first page.

Can anybody help me please? Thank you.