title: Jquery is not defined when remove "text/javascript" attribute
body: <p><strong>Scenario that works:</strong></p>
  <ul>
  <li><p>I have an <code>APP_FRAMEWORK.JS</code> file that was generated through a <code>WEBPACK</code>, including <code>BOOTSTRAP AND JQUERY</code> inside it.</p>
  <pre><code>&lt;script type=&quot;text/javascript&quot; src=&quot;{{ asset('js/app_framework.js') }}&quot; defer&gt;&lt;/script&gt;
  
  @if(!empty($assets['js']))
      @foreach ($assets['js'] as $js)
          &lt;script type=&quot;text/javascript&quot; src=&quot;{{ asset($js) }}&quot;&gt;&lt;/script&gt;
      @endforeach
  @endif
  </code></pre>
  </li>
  </ul>
  <p>If I load the page as in the example, it works perfectly, without any errors in the scripts that are loaded inside that loop below.</p>
  <p><strong>My question:</strong></p>
  <ul>
  <li>Why, if I remove the &quot;text/javascript&quot; when loading the <code>MAIN SCRIPT (APP_FRAMEWORK.JS)</code> the <code>$ is not defined</code> error starts to appear?</li>
  <li>Remembering that this <code>TYPE</code> is no longer mandatory, scripts are loaded in the correct order and there is a <code>DEFER</code>!!!</li>
  </ul>
  <p><a href="https://i.stack.imgur.com/39kiA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/39kiA.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/yiMA1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yiMA1.png" alt="enter image description here" /></a></p>