How to remove standard platform JavaScript from a Visualforce page when it is not needed?

I have an AngularJS app running from a Site that and the main page and partial pages are all wrapped in an apex:page with these attributes:

<apex:page showHeader="false" sidebar="false"
        standardStylesheets="false" applyHtmlTag="false">
     // AngularJS content

I’d like to know if it is possible to eliminate this automatically generated content from the output:

<script src="/faces/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript?rel=1398024554000"
<script src="/eep/static/111213/js/perf/stub.js"></script>

as it serves no useful purpose.

Do any of the apex:page attributes that I am not setting have the effect of removing these script references?


See this answer for some (safe harbored) Salesforce plans about this.


I had the exact same experience. To my knowledge, it can’t be done. I created an idea for it…maybe you could vote for it? Maybe all of you could vote for it. 🙂

Source : Link , Question Author : Keith C , Answer Author : Shane McLaughlin

Leave a Comment