Is it ok to strip a masterpage for all SharePoint scripts and styles? We have custom CSS and all of our scripts are JQuery. Even CQWP will have custom rendering.

The reason we want to do this is so end users will get a lighter version of the page. Since it's a publishing page all end users will be anonymous. We will include all scripts, styles and ribbon for logged in users, so the custom layout have to work for logged in users as well.

3 Answers 3


(Note) It seems this is somewhat answered here:

Has anyone optimized the front-end (css/javascript files) of a SharePoint site


You can do it for most styles, but keep in mind you'll need a good bit of stuff for the ribbon and other SharePoint UI controls. Can you completely replace the SP2010 UI? Sure... but you're likely looking at a considerable effort.

  • I'm keeping styles and scripts for ribbon when the user is logged in. The ribbon will not be visible for anonymous users, so the scripts and styles I miss will only be for existing Web Parts and such, which we probably can style ourselves.
    – eirikb
    Commented May 12, 2010 at 11:32

I tend to hide ribbon fully from anonymous users and then only leave the CSS that's truly needed, like corev4.css

  • We even strip away corev4.css, and we had no problems so far.
    – eirikb
    Commented Jun 29, 2010 at 9:22
  • Nice, have to try that then :)
    – Anonymous
    Commented Jul 1, 2010 at 5:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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