Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49250

Big HTML pages take way to much time to load for the first time

$
0
0

@emanuelmoldovan wrote:

Hi people!

I’m creating an app in which I have multiple pages with over 1000+ lines of HTML code. I have few with 10000 lines or so.

I used LazyLoading so that app is initialising pretty fast. But when I enter those pages I have a lag. The app stalls and take like 10-20 seconds to navigate to those pages.

I tried to use “priority” for the pages, but If I do that I have a lag on the app initialisation - so this is not a solution for me.

IonicModule.forRoot(MyApp, {
      preloadModules: true
    })

I’m pretty sure the issue is due to my large HTML file, but I see that even if I ngIf to “false” the elements inside the page, there’s no improvement.

Is there a solution for big HTML pages in Ionic? I’m sure others are dealing with this issue.

Thanks!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>