SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

Playing around with Office 365 public website Master Page. Used security trimming to strip down the master page to reduce weight for use in responsive design. Assumption is we would not want any of the MS scripts on the page (still need a few to make Web Forms work).

Does anyone know where this comes from / how to remove it? Assuming a delegate control?

(function (){

                if (document.getElementById('ms-belltown-table'))
                    var footer = document.getElementById('footer');
                    var content = document.querySelector('.contentwrapper');

                    if (footer && content) {
               = footer.clientHeight + 'px';

                } else if (document.all && document.querySelector && !document.addEventListener) 
                    var titleRow = document.getElementById('titlerow');
                    var contentRow = document.getElementById('contentrow');
                    var footerRow = document.getElementById('DeltaPlaceHolderFooter');

                    if (titleRow && contentRow && footerRow) {
               = titleRow.clientHeight + 'px';
               = 'auto';
               = footerRow.clientHeight + 'px';


Search is registering a few scripts even when search has been turned off.

Navigation is registering a few scripts as well - however we have that turned off as well.

Scripts are not in the master page so must be in a delegate control.

Example Markup:

Any thoughts on how to further trim this down would be appreciated!

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.