More in this section

Forums / General Discussions / Sitefinity performance / .debug scripts

Sitefinity performance / .debug scripts

5 posts, 1 answered
  1. Paul
    Paul avatar
    24 posts
    Registered:
    16 May 2011
    19 Jul 2011
    Link to this post
    Hi,

    How do you get Sitefinity to use the compressed javascript libraries rather than the debug versions? They are massively hindering the performance of my site!

    If you look at the attached screenshot, this show the timeline for loading one of my pages. I have highlighted four files which take a significant amount of time to load. They are:

    MicrosoftAjaxWebForms.debug.js
    MicrosoftAjax.debug.js
    jQuery JavaScript Library v1.5.2
    Telerik.Sitefinity.Resources.Scripts.MicrosoftAjax.debug.js

    I'm not too woried about JQuery as it is worth the hit, however as you can see, the remaining three are the debug version of scripts - is there a way to use the compressed versions instead?

    Paul
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    19 Jul 2011
    Link to this post
    Is your site running in debug mode?

    Also I find serving those up on the microsoft\google CDNs boosts performance on live significantly
  3. Paul
    Paul avatar
    24 posts
    Registered:
    16 May 2011
    20 Jul 2011
    Link to this post
    Erm, good question! How do I check?
  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    20 Jul 2011
    Link to this post
    1) In Visual Studio check your build configuration from the menu,make sure it's "Release" not "Debug"
    2) Look for this line in your web.config, make sure it's set to false
    <compilation debug="true"
    (it's probably set to true in yours)
    Answered
  5. Paul
    Paul avatar
    24 posts
    Registered:
    16 May 2011
    20 Jul 2011
    Link to this post
    Excellent!

    I had compiled the application with the Release build, but the web.config had not been updated.

    Now I've done that, the release scripts are now being served correctly, so thank you! :)
5 posts, 1 answered