title: jquery-3.5.1.min.js throwing Uncaught SyntaxError: Unexpected token '<'
body: <p>I am upgrading the jQuery version from 1.8.1 to the latest 3.5.1 in an ASP.NET web application.</p>
  <p>The application works if I use reference <code>&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js&quot;&gt;&lt;/script&gt;</code> but fails if I use the downloaded Nuget version of jQuery path, <code>&lt;script src=&quot;/Scripts/jquery-3.5.1.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</code>.</p>
  <p>Below is the code snippet.</p>
  <pre><code>    &lt;asp:Content ID=&quot;Content3&quot; ContentPlaceHolderID=&quot;FooterContent&quot; runat=&quot;server&quot;&gt;
          &lt;%--&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;--%&gt;
  &lt;script src=&quot;/Scripts/jquery-3.5.1.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;/js/js.cookie-2.0.3.min.js&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
      $(document).ready(function () {
          if (Cookies.get(&quot;RedirectToLoginPage&quot;) == &quot;1&quot;) {
              Cookies.remove(&quot;RedirectToLoginPage&quot;);
          }
       });
  &lt;/script&gt;
  &lt;/asp:Content&gt;
  </code></pre>