Bootstrap FreeKB - MVC - Pace loading bar
MVC - Pace loading bar

Updated:   |  MVC articles

Get the pace.js file.

  1. Go to http://github.hubspot.com/pace/docs/welcome/.
  2. Select pace.js.
  3. Copy the code to create the pace.js file.
  4. Add pace.js to the Scripts folder.

 

Get the CSS.

  1. Go to http://github.hubspot.com/pace/docs/welcome/.
  2. Click Donwload to select your preferred theme.
  3. Copy the code to create the pace.css file.
  4. Add pace.css to the Content folder.

 

Add the following to the /Shared/_Layout.cshtml file.

<head>
  <script src="/Scripts/pace.js"></script>
  <link href="/Content/pace.css" rel="stylesheet" />
</head>

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter aa8f4c in the box below so that we can be sure you are a human.