locked
Slow Page Load RRS feed

  • Question

  • I am creating an app that only access files locally.  I have one HTML page that is really large and it takes a good 5 secs to load when the user accesses it.  Is there any way to have this page load into memory on application launch to speed up access to it when the user navigates to it?  If not, any other suggestions?

    By the way, the page is all text; no images.

    Tuesday, March 11, 2014 8:22 PM

Answers

  • Hi AM_Jimmy,

    Take 5 seconds to load the page? There is no way to load page in to memory while the app launched. But you could try following suggestions.

    You could use background task for such situation. See: Quickstart: Create and register a background task. Bascially in order not to block the UI thread, we have to put the long time executed code in background.

    However you can also apply some lazy loading actions to decrease the loading time.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by AM_Jimmy Wednesday, March 12, 2014 1:34 PM
    Wednesday, March 12, 2014 2:32 AM
    Moderator