pace

2018-05-16 admin

pace是什么

什么是pace,Pace 是一个页面加载进度条工具。

pace介绍

Disclaimer, We no longer use this library internally and are focusing our efforts on open sourcing and maintaining projects that we do use and can meaningfully contribute to. Sorry for any frustrations with this project (we’re happy to link to any fork that has an excited, commited maintainer).

An automatic web page progress bar.

Include pace.js and a theme of your choice to your page and you are done!

We also have a Wordpress Plugin.

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.

Example

<head>
  <script src="/pace/pace.js"></script>
  <link href="/pace/themes/pace-theme-barber-shop.css" rel="stylesheet" />
</head>

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-32366.html

文章标题:pace

相关文章
Splitting a javascript namespace into multiple files
sg7Piotr Zurek提出了一个问题:Splitting a JavaScript namespace into multiple files,或许与您遇到的问题类似。 回答者generalhenry给出了该问题的处理方式: At t...
2018-04-10
How to set up JavaScript namespace and classes properly?
NealTruMan1提出了一个问题:How to set up JavaScript namespace and classes properly?,或许与您遇到的问题类似。 回答者Neal给出了该问题的处理方式: Do neither ...
2018-04-13
Detect String which contain only spaces
Rory McCrossanLuca提出了一个问题:Detect String which contain only spaces,或许与您遇到的问题类似。 回答者Rory McCrossan给出了该问题的处理方式: To achieve ...
2018-04-26
spacejam
spacejam是什么 什么是spacejam,Run your meteor package tinytests and mocha tests from the command line with phantomjs. spaceja...
2018-09-14
Why do I get message: "Unhandled event loop exception Java heap space" in Eclipse when using javascript autocomplete?
Kellindiluser1769128提出了一个问题:Why do I get message: “Unhandled event loop exception Java heap space” in Eclipse when using...
2018-04-24
jQuery attribute selectors: How to query for an attribute with a custom namespace
Sebastian Rittau提出了一个问题:jQuery attribute selectors: How to query for an attribute with a custom namespace,或许与您遇到的问题类似。 回...
2018-04-15
Remove whitespaces inside a string in javascript [closed]
CommunityHernán Eche提出了一个问题:Remove whitespaces inside a string in javascript [closed],或许与您遇到的问题类似。 回答者William RusnackHen...
2018-04-09
Space after function name is wrong?
supercoolville提出了一个问题:Space after function name is wrong?,或许与您遇到的问题类似。 回答者Interrobang给出了该问题的处理方式: JSLint is not a Javasc...
2018-04-18
understanding the javascript global namespace and closures
Bill Kellerzero提出了一个问题:understanding the javascript global namespace and closures,或许与您遇到的问题类似。 回答者Matt给出了该问题的处理方式: Is...
2018-04-21
回到顶部