Sitefinity performance / .debug scripts
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
Is your site running in debug mode?
Also I find serving those up on the microsoft\google CDNs boosts performance on live significantly
Erm, good question! How do I check?
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"
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! :)