title: How to prevent Coldfusion from injecting cfform.js into the head section?
body: <p>An HTML template is passed to Coldfusion. The head tag of the template has additional attribute:</p>
  
  <pre><code>&lt;head profile="http://abc.com"&gt;
  </code></pre>
  
  <p>The issue is that when generating the output based on this template Coldfusion injects its scripts inside the head tag:</p>
  
  <pre><code>&lt;head &lt;script type="text/javascript" src="/CFIDE/scripts/cfform.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/CFIDE/scripts/masks.js"&gt;&lt;/script&gt;
  profile="http://abc.com"&gt;
  </code></pre>
  
  <p>This causes <code>profile="http://abc.com"&gt;</code> to appear on the top of the page and prevents page from validation.</p>
  
  <p>The code injection occurs only when there is a form tag. The wrong-place injection does not happen if the head tag does not have any attributes. The presence of the attribute is a project requirement and cannot be omitted. </p>
  
  <p>Is it possible to prevent Coldfusion from injecting the scripts?</p>