Push method freezes the app for a short time


#1

I just added an onboarding page on my app, and when i click the skip button

skip(){
    this.navCtrl.setRoot(HomePage);
}

the app freezes for 1 or 2 seconds and then the HomePage appears … i tried the setTimeOut() but it still gives the same result. i tried minimizing the app by deleting some unnecessary libraries and other stuff.