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 </apex:page>
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" type="text/javascript"></script> <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?
PS
See this answer for some (safe harbored) Salesforce plans about this.
Answer
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. 🙂
https://success.salesforce.com/ideaView?id=08730000000l2Y8AAI
Attribution
Source : Link , Question Author : Keith C , Answer Author : Shane McLaughlin