Preload views in background?

4 posts, 0 answers
  1. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 04 Nov 2013 Link to this post

    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. 
  2. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 06 Nov 2013 Link to this post

    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!
  3. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 06 Nov 2013 Link to this post

    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? 
  4. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 07 Nov 2013 Link to this post

    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!
Back to Top