Loading indicator taking too much time to show


#1

Hi,

I would like to know if other people have the same issue that I see and if you found a solution.

I am using the loading indicator with the “dismissOnPageChange” option.

I found out that the first time that my code calls the loading indicator, the page that I push takes time to load and once loaded the loading indicator shows up very quickly and disappear.

The next time I go to that page, the page shows up quickly and the loading indicator shows at the right time and disappear the way it should be.

Here how the code looks like

Page.ts

  menuSelected(menu) {
    let loading = Loading.create({
      spinner: 'circles',
      content: 'Loading Please Wait...',
      dismissOnPageChange: true
    });

    this._nav.present(loading);  
      
    this._nav.push(menu.page);
  }

A solution to suggest?

Thanks