title: MVC where to put js reference for our cshtml file?
body: <p>In our existing web application we have done it at the starting of <code>.cshtml</code> page:</p>
  
  <pre><code>@using Carwale.UI.PresentationLogic;
  @model Carwale.Entity.ViewModels.HomeModel
  @{
      ViewBag.CustomJS = "~/Views/StaticPartials/HomeScripts.cshtml";
      ViewBag.CustomCSS = "~/Views/StaticPartials/HomeCss.cshtml";
  }
  </code></pre>
  
  <p>And in our <code>"~/Views/StaticPartials/HomeScripts.cshtml"</code>, we have:</p>
  
  <pre><code>@model Company.Entity.ViewModels.HomeModel
  &lt;script&gt;var landingPage = true;&lt;/script&gt;
  &lt;script type="text/javascript" src="@(!string.IsNullOrWhiteSpace(ViewBag.staticUrl) ? "http://st.com" + ViewBag.stagingPath : "")/js/home.js?201605021628098010"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I am getting render blocking <code>javascript</code> suggestion from various performance website.</p>
  
  <p>Can I improve this somehow?
  I read that this should be in some <code>javascript</code> section on the bottom of the page to improve the page load time.</p>