Note that there are some explanatory texts on larger screens.

plurals
  1. POClean up html output for anonymous users in SharePoint 2010
    primarykey
    data
    text
    <p>I'm using SharePoint 2010 for building a large internet facing website and I am now in the process of optimising the site for anonymous users. As I look in the html sourcecode of my start page I find that various ootb components of SharePoint are adding lots of unnecessary stuff to the page. (At least they are unnecessary to the anonymous user, since we are using completely custom branding.)</p> <p>Some examples:</p> <p>In head:</p> <pre><code>&lt;style type="text/css"&gt; .ctl00_PlaceHolderOuterWrap_DialogPlaceHolder_PlaceHolderOuterMain_TopWebPartZone_0 { border-color:Black;border-width:1px;border-style:Solid; } .ctl00_PlaceHolderOuterWrap_DialogPlaceHolder_PlaceHolderOuterMain_LeftWebPartZone_0 { border-color:Black;border-width:1px;border-style:Solid; } .ctl00_PlaceHolderOuterWrap_DialogPlaceHolder_PlaceHolderOuterMain_RightWebPartZone_0 { border-color:Black;border-width:1px;border-style:Solid; } .ctl00_PlaceHolderOuterWrap_DialogPlaceHolder_PlaceHolderOuterMain_ctl01_SocialWebPartZone_0 { border-color:Black;border-width:1px;border-style:Solid; } .ctl00_wpz_0 { border-color:Black;border-width:1px;border-style:Solid; } </code></pre> <p></p> <p>In top of body:</p> <pre><code>&lt;script type="text/javascript"&gt; //&lt;![CDATA[ var MSOWebPartPageFormName = 'aspnetForm'; var g_presenceEnabled = true; var g_wsaEnabled = false; var g_wsaLCID = 1033; var g_wsaSiteTemplateId = 'XXX#1'; var g_wsaListTemplateId = 850; var _fV4UI=true;var _spPageContextInfo = {webServerRelativeUrl: "\u002fen-gb", webLanguage: 1033, currentLanguage: 1033, webUIVersion:4,pageListId:"{28b31ecf-221c-4a5f-94e2-6b97af0cfd61}",pageItemId:1, alertsEnabled:true, siteServerRelativeUrl: "\u002f", allowSilverlightPrompt:'True'};//]]&gt; &lt;/script&gt; &lt;script type="text/javascript"&gt; &lt;!-- var L_Menu_BaseUrl="/en-gb"; var L_Menu_LCID="1033"; var L_Menu_SiteTheme=""; //--&gt; &lt;/script&gt; &lt;script type="text/javascript"&gt; //&lt;![CDATA[ document.onreadystatechange=fnRemoveAllStatus; function fnRemoveAllStatus() {removeAllStatus(true)};var _spWebPartComponents = new Object();//]]&gt; &lt;/script&gt; </code></pre> <p>And lots of other stuff near the bottom of the page, such as javascript functions etc.</p> <p>Anyone who has tried removing all of this stuff?</p> <p>I'm looking for as clean way as possible, parsing the html in a http-module filter is not very appealing.</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload