SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 6 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

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

Your Answer


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.