Edit in JSFiddle
HTML
<head> <script src="https://cdn.jsdelivr.net/npm/pace-js@latest/pace.min.js"></script> </head>