This is a migrated thread and some comments may be shown as answers.

Preload views in background?

3 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul McNamara
Top achievements
Rank 1
Paul McNamara asked on 04 Nov 2013, 11:39 AM
I have a single page app but I'd like to give more feedback to the user when the initial bulk of markup and script is loaded. Is there a supported way or me loading only a very small initial page which subsequently fetches and loads into the DOM all the other views that the application will use? This was I can show a progress bar or similar instead of just a blank screen. 

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 06 Nov 2013, 07:39 AM
Hello Paul,

I am afraid that view preloading is not supported currently. Load on demand is built-in, using remote views - perhaps this will help with your case. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Paul McNamara
Top achievements
Rank 1
answered on 06 Nov 2013, 08:44 AM
It's not a deal breaker at this time, just an enhancement we'd like to make. Is this something that's on the roadmap?

On a technical level, if we did want to "hack" this what would be required to correctly initialise the view and inform the framework of its presence once the view had been appended to be <body> in the DOM? 
0
Petyo
Telerik team
answered on 07 Nov 2013, 08:49 AM
Hello Paul,

So far, this is not in our immediate plans. You may consider suggesting this in our uservoice portal.

As per your second question: the internals of the mobile application look for and initialize the mobile view on demand, the first time it is navigated to. In case you insert the correct view contents in the DOM, there is no need for any kind of notification.

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Paul McNamara
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Paul McNamara
Top achievements
Rank 1
Share this question
or