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

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.

share|improve this question

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.

share|improve this answer
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 May 12 '10 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

share|improve this answer
We even strip away corev4.css, and we had no problems so far. – eirikb Jun 29 '10 at 9:22
Nice, have to try that then :) – Anonymous Jul 1 '10 at 5:05

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.