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

相关文章
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
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
Detect String which contain only spaces
Rory McCrossanLuca提出了一个问题:Detect String which contain only spaces,或许与您遇到的问题类似。 回答者Rory McCrossan给出了该问题的处理方式: To achieve ...
2018-04-26
Splitting a javascript namespace into multiple files
sg7Piotr Zurek提出了一个问题:Splitting a JavaScript namespace into multiple files,或许与您遇到的问题类似。 回答者generalhenry给出了该问题的处理方式: At t...
2018-04-10
politespace
politespace是什么 什么是politespace,Politely add spaces to input values to increase readability (credit card numbers, phone nu...
2018-07-20
Remove whitespace and line breaks between HTML elements using jQuery
mager提出了一个问题:Remove whitespace and line breaks between HTML elements using jQuery,或许与您遇到的问题类似。 回答者Pavel DjundikThe Digit...
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
Remove whitespaces inside a string in javascript [closed]
CommunityHernán Eche提出了一个问题:Remove whitespaces inside a string in javascript [closed],或许与您遇到的问题类似。 回答者William RusnackHen...
2018-04-09
React Native Listview leaving space
ilansas提出了一个问题:React Native Listview leaving space,或许与您遇到的问题类似。 回答者ilansas给出了该问题的处理方式: Ok so, I found the answer, I post...
2018-04-10
回到顶部