2200205 6f61d957ee 添加项目文件。 | 3 weeks ago | |
---|---|---|
.. | ||
themes | 3 weeks ago | |
.bower.json | 3 weeks ago | |
LICENSE | 3 weeks ago | |
README.md | 3 weeks ago | |
bower.json | 3 weeks ago | |
install.json | 3 weeks ago | |
pace.coffee | 3 weeks ago | |
pace.js | 3 weeks ago | |
pace.min.js | 3 weeks ago |
An automatic web page progress bar.
Include pace.js and a theme of your choice to your page and you are done!
Pace will automatically monitor your Ajax requests, event loop lag, document ready state and elements on your page to decide on the progress.
If you use AMD or Browserify, require pace.js and call pace.start()
as early in the loading process as is possible.
<head>
<script src="/pace/pace.js"></script>
<link href="/pace/themes/pace-theme-barber-shop.css" rel="stylesheet" />
</head>