Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

When I view my SharePoint site I see a lot of .debug.js files being added by SharePoint. Is there a way to stop this happening.

  1. cui.debug.js
  2. core.debug.js
  3. sp.debug.js
  4. sp.ribbon.debug.js
  5. init.debug.js

they account for around 400k of the page download.

The format map is also accounting for a fair chunk of the page weight.

I know how to use the security trimmed control but I dont know where these items are and what is safe to wrap with the control.

share|improve this question

2 Answers 2

you can debug the code through Firebug(firefox) or debugbar(IE) the and you will see all process are necesary.

try it ;)

share|improve this answer
up vote 5 down vote accepted

D'oh! turns out setting the debug="false" value in the system.web section removes the .debug.js files from the client download...

<compilation batch="false" debug="false" optimizeCompilations="true">
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.