title: How to insert async and defer in script tags with CakePHP 3
body: <p>I'm using PHP Framework CakePHP 3.0.3 and would like to know how to insert the keywords <strong>defer</strong> and <strong>async</strong> script tags: </p>
  
  <p>How is the Script Injection with the framework: </p>
  
  <pre><code> &lt;? = $ This-&gt; html-&gt; script ('jquery-1.11.1.min.js')?&gt; 
  </code></pre>
  
  <p>How is rendered: </p>
  
  <pre><code> &lt;script src = "/ js / jquery-1.11.1.min.js"&gt; &lt;/ script&gt; 
  </code></pre>
  
  <p>Like how you would like it to be: </p>
  
  <pre><code> &lt;async script src = "/ js / jquery-1.11.1.min.js"&gt; &lt;/ script&gt; 
   &lt;script defer src = "/ js / jquery-1.11.1.min.js"&gt; &lt;/ script&gt; 
  </code></pre>
  
  <p>In the documentation I saw nothing that could be done this insert. </p>
  
  <p>An alternate form is to make as follows: </p>
  
  <pre><code> &lt;? = $ This-&gt; html-&gt; script ('jquery-1.11.1.min.js' ['defer' =&gt; true])?&gt; 
  </code></pre>
  
  <p>and this rendering: </p>
  
  <pre><code> &lt;script src = "/ js / jquery-1.11.1.min.js" defer = "defer"&gt; &lt;/ script&gt;
  </code></pre>