SharePoint 2010 Stop .debug.js files from downloading

http://sharepoint.stackexchange.com/questions/13455/can-all-the-layouts-xxx-debug-js-files-not-be-served-to-end-users


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.

Gotcha, in your masterpage, set the ScriptMode to Release, so that it looks like this: <asp:ScriptManager id="ScriptManager" runat="server" ScriptMode="Release" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" />
 – James Love May 26 '11 at 18:25

Comments

  1. Building the solution using Release mode should be sufficient.

    ReplyDelete

Post a Comment

Popular posts from this blog

Using External Content Types with Stored Procedures with Input Parameters

Validate a SharePoint Date Field against Current Date in Javascript