+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Slow Initial Page Load

Slow Initial Page Load

4 posts, 0 answered
  1. Hector
    Hector avatar
    32 posts
    Registered:
    01 Oct 2013
    09 Oct 2015
    Link to this post
    When you try to access the website for the first time after it has been idle it takes about 20-25 seconds to load up the page then every load after that will be almost instant until the page is not visited for some time again where it will again take 20-25 seconds to load and then instantly after again.  Is there any way to improve this load time? I have tried the recommended suggestions of keeping the application "warm" using application initialization on IIS but still having same issue.
  2. Junior Dominguez
    Junior Dominguez avatar
    115 posts
    Registered:
    08 Dec 2016
    14 Oct 2015
    Link to this post
    Hi Hector,

    Please note that the first load delay is a normal behavior in Asp.Net. You may consider increasing the Idle timeout (see image) and review this article.

    You may also find useful the below resources to improve the performance in general:

    http://docs.sitefinity.com/tips-for-optimizing-performance

    http://www.sitefinity.com/blogs/slavoingilizov/posts/slavo-ingilizovs-blog/2012/03/14/5_practices_to_avoid_when_doing_sitefinity_development

    In addition, you can enable the "Wait for page OutputCache to fill" option under Administration -> Settings -> Advanced -> Output Cache Settings -> Output Cache Profiles -> (the caching profile you have selected for your page).

    You can also try to load the scripts using CDN. It should speed up the scripts loading, as well as, increase the chance to load the script from browser cache. You can enable it from Advanced settings -> Pages -> Script Manager -> Enable CDN.

    I hope this helps.

    Best Regards,
    Junior Dominguez
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    14 Oct 2015 in reply to Junior Dominguez
    Link to this post

    @Hector

    If you watch your windows processes you can see "csc.exe" ticking away.  Basically yeah asp is compiling all the widgets and things on the page.  Subsiquent requests (as you can see) don't get this hit.  Anytime csc seems to be running the entire site just in unresponsive until it completes.  We have lots of pages with lots of concurrent users so when we recycle god I WISH it was only 20 seconds, we're talking maybe 5 minutes to come back.  It's like all the pages or requests go into a queue to be popped off.  If I recycle the same site in the middle of the night when there's nobody on it, we're back down to the 20-30 seconds....but then it's per page.  So if I go somewhere else, it's another 20-30 seconds.

    There's basically nothing you can do, the more customization\widgets on a page, the worse it gets.  They have a precompilation tool which doesn't at all help with loadtimes on the frontend, however it does seem to work on speeding up the backend requests.

    Nothing Junior recommends will make any real *noticable* difference. 

     

  4. MB
    MB avatar
    302 posts
    Registered:
    09 Jan 2005
    15 Oct 2015 in reply to Hector
    Link to this post

    Basically, you need to stop it from going idle.

    In addition to the IIS Initialization module, you have 2 main paths...

    1. Use an external "ping" service, to access a specific page every 10mins (or whatever)
          There are plenty of these services available on the internet.

    2. Use an internal "ping" IIS task to access the website every 10 mins (or whatever)

    Personally, I took the 2nd path for our sites (still on IIS 7.5) and the sites are always responsive... but your mileage may vary.

    There are lots of examples that can be Googled, but perhaps this might give you some pointers...

    http://www.codeproject.com/Articles/39118/Keep-Your-Website-Alive-Don-t-Let-IIS-Recycle-Your

     

4 posts, 0 answered