title: Getting a JS error when publishing site
body: <p>Getting a: <code>Error: ReferenceError: $ is not defined</code> when I publish my website.
  Even though I have the JQuery lib added in the Layout page, and now also on the partialView that complains about not finding the JQuery lib
  This is how I reference it:</p>
  
  <pre><code>&lt;script src="~/Scripts/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>When I run the website locally, it works fine, no JS errors, but it is as soon as it is published, that it starts complaining. Normally I would add code with my question, but I am not really sure what code to add. I just want to know if there is a difference in how the js files are loaded when site is published, than when running locally. Has anyone experienced such errors?</p>
  
  <p>On 2nd thoughts, I'll try add code anyway. The code that complains is this:
  (And it is in a partialview)</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $('#slider').rhinoslider();
  
          $("#sliderHolderQitoz").toggle("fade", 6000);
      });    
  &lt;/script&gt;
  </code></pre>
  
  <p>My layout looks like this:</p>
  
  <pre><code> &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;title&gt;@ViewBag.Title&lt;/title&gt;
  
      @Styles.Render("~/Content/css")
      @Scripts.Render("~/bundles/modernizr")
  
      &lt;script src="~/Scripts/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
      &lt;script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
      &lt;link href="~/Content/rhinoslider-1.05.css" rel="stylesheet" /&gt;
  
      &lt;link href="~/Scripts/jquery-ui.min.css" rel="stylesheet" /&gt;
      &lt;script src="~/Scripts/jquery-ui.min.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/jquery.unobtrusive-ajax.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/jquery.unobtrusive-ajax.min.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/OwnedScripts/InitializeUI.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/OwnedScripts/Dialogs.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/OwnedScripts/Misc.js"&gt;&lt;/script&gt;
  
      &lt;script src="~/Scripts/ExtraScripts/rhinoslider-1.05.min.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/ExtraScripts/rhinoslider-1.05.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/ExtraScripts/mousewheel.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/ExtraScripts/easing.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Again, when running/debuggin locally, all is good, the error comes after publishing</p>