title: How to implement Pace with ASP.Net MVC applications
body: <p>I have implemented <code>pace.js</code> with my ASP.NEt application so that I can display loading while my program performs <code>ajax</code> calls.</p>
  
  <p>I have the following in my main layout view:</p>
  
  <pre><code>&lt;script data-pace-options='{ "ajax": true, "elements": false, "document": false }' src="~/Scripts/pace.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Unfortunately,</p>
  
  <p>The loader keeps loading no matter what I do, sometimes it just goes on for ages. All I want it to do is load during my ajax calls. And it still loads even on pages that don't have ajax calls.</p>
  
  <p>How do I do that?</p>