We have a page that takes a while to load the first time. The second time it loads fine. We tried the following hack in the startup script:
var page = app.currentPage;
app.showPage(app.pages.bigForm);
app.showPage(page);
This hack does work, the page loads fast the first time it is accessed by the user. The screen does not flash between the loads. However, the bigform does not detach and the first time it is opened it does not execute the on-attach event. This event contains some code I would like to execute.
My questions:
- is there a better way of doing this, basically pre-loading the page?
- is there a way to force a detach of the page?