Sitefinity performance / .debug scripts

Posted by Community Admin on 03-Aug-2018 09:33

Sitefinity performance / .debug scripts

All Replies

Posted by Community Admin on 19-Jul-2011 00:00

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

Posted by Community Admin on 19-Jul-2011 00:00

Is your site running in debug mode?

Also I find serving those up on the microsoft\google CDNs boosts performance on live significantly

Posted by Community Admin on 20-Jul-2011 00:00

Erm, good question! How do I check?

Posted by Community Admin on 20-Jul-2011 00:00

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)

Posted by Community Admin on 20-Jul-2011 00:00

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! :)

This thread is closed