title: Uncaught ReferenceError: $ is not defined in twig template with jQuery import
body: <p>I have this code in my twig view:</p>
  
  <pre><code>{% extends "MyBundleBundle::layout.html.twig" %}
  {% block content %}
      &lt;div class="page-header"&gt;
          &lt;h4&gt;add an equipement&lt;/h4&gt;
      &lt;/div
      &lt;select id="selectEquipement"&gt;
            &lt;option selected disabled&gt;choose an equipement&lt;/option&gt;
            &lt;option value="{{ path('addEquipement1') }}"&gt;Equipement 1&lt;/option&gt;
            &lt;option value="{{ path('addEquipement2') }}"&gt;Equipement 2&lt;/option&gt;
      &lt;/select&gt;
  
      &lt;div id="formEquipement"&gt;&lt;/div&gt;
  
      &lt;script type="text/javascript"&gt;
          $(document).ready(function() {
              $('#selectEquipement').change(function() {
                  var url = $(this).val();
                  $.get(url , {} , function(formulaire)  {
                      $("#formEquipement").html(formulaire);
                      })
                  })
          });
      &lt;/script&gt;
  {% endblock %}
  </code></pre>
  
  <p>When i load the page content of this view I have this error on the first line of my script <code>$(document).ready(function() {</code> :</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: $ is not defined in twig template</p>
  </blockquote>
  
  <p>I understand that jQuery is not <strong>load</strong>. When I add <code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;</code> this tag on this view, all works well, I have no error.</p>
  
  <p>But, in fact I already import in my application (local) the <strong>jquery script</strong> I need. So In my main layout I have imported the script like this:</p>
  
  <pre><code>{% block script %}
                  {% javascripts
  
                                  '@MySpaceMyBundle/Resources/public/js/jquery-2.1.1.min.js'
                                  '@MySpaceMyBundle/Resources/public/js/jquery-ui.min.js'
                                  '@MySpaceMyBundle/Resources/public/js/bootstrap.min.js'
                                  '@MySpaceMyBundle/Resources/public/js/applydataTables.js'
                                  '@MySpaceMyBundle/Resources/public/js/jquery.form.min.js'
                                  '@MySpaceMyBundle/Resources/public/js/jquery.dataTables.min.js'
                                  '@MySpaceMyBundle/Resources/public/js/dataTables.colVis.min.js'
                                  '@MySpaceMyBundle/Resources/public/js/jquery.sumoselect.min.js'
                                  '@MySpaceMyBundle/Resources/public/js/main.js'
                                  'http://cdn.datatables.net/responsive/1.0.3/js/dataTables.responsive.js'%}
                                  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
                  {% endjavascripts %}
              {% endblock %}
  </code></pre>
  
  <p>Someone know why? I noticed that I have some errors like these since I <strong>upgrade</strong> my symfony application to the 2.6 version.</p>
  
  <p>Moreover, when I use <strong>Ajax</strong> call in my application, in the <strong>symfony toolbar</strong>, the notification for Ajax request does not work like before (no notifications), but when I debug in the <strong>network tab of my browser</strong> all works well.</p>