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 ?
-
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.
-
@emccorson said in OnsNavigator pushPage(page, [options]) , loads page with a significant delay. (Angular) 8 ball pool:
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.Thank you very much for your quick reply, much appreciated.