Monaca Onsen UI Discord Chat Github Repo

OnsNavigator pushPage(page, [options]) , loads page with a significant delay. (Angular)

  • Hello,
    I am using onsen UI for Constellation Digital platform application.
    while in progress for some pages when using onsNavigator.pushPage() for navigation the page presents with a huge delay after we trigger pushPage().
    is there any method to overcome this slow performance.
    And how we use ons.preload(templatePaths) in Angular ?

  • administrators

    ons.preload looks like it should do the trick.

    You just need to pass ons.preload the names of the templates you want to preload and then call .then on the promise returned by preload. In the callback function, do whatever you need to - this will run when the templates have loaded.