My current project involves using Ionic 3, and I'm facing some challenges with lazy loading.
The ResultPage
, which has a template named resultpage.html
, contains over 1000 lines of HTML code. In the HomePage
, my intention is to navigate to the ResultPage
by using navCtrl.setRoot
. However, upon calling this function, the screen freezes for approximately 3-4 seconds before redirecting me to the ResultPage
. This delay results in a poor user experience. The issue only occurs with large templates, specifically the first time I access that page. To address this problem, I removed lazy loading from the ResultPage
, and the lag disappeared. I am uncertain if this is the correct approach. Could someone provide guidance on what steps I should take in this situation?
Thank you very much!