remove *.debug.js from master page
-
16-10-2019 - |
Question
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.
- cui.debug.js
- core.debug.js
- sp.debug.js
- sp.ribbon.debug.js
- 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.
Solution
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">
OTHER TIPS
you can debug the code through Firebug(firefox) or debugbar(IE) the and you will see all process are necesary.
try it ;)
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange