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

相关文章
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
Regular Expression: Allow letters, numbers, and spaces (with at least one letter or number)
Alan Mooremakeee提出了一个问题:Regular Expression: Allow letters, numbers, and spaces (with at least one letter or number),或许与您...
2018-04-11
Splitting a javascript namespace into multiple files
sg7Piotr Zurek提出了一个问题:Splitting a JavaScript namespace into multiple files,或许与您遇到的问题类似。 回答者generalhenry给出了该问题的处理方式: At t...
2018-04-10
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
React Native Listview leaving space
ilansas提出了一个问题:React Native Listview leaving space,或许与您遇到的问题类似。 回答者ilansas给出了该问题的处理方式: Ok so, I found the answer, I post...
2018-04-10
understanding the javascript global namespace and closures
Bill Kellerzero提出了一个问题:understanding the javascript global namespace and closures,或许与您遇到的问题类似。 回答者Matt给出了该问题的处理方式: Is...
2018-04-21
isNullorWhitespace in javascript
Scott提出了一个问题:isNullorWhitespace in javascript,或许与您遇到的问题类似。 回答者Dexter给出了该问题的处理方式: It’s easy enough to roll your own: func...
2018-04-10
Javascript replace all "%20" with a space
Alexis Tyleruser3109009提出了一个问题:Javascript replace all “%20” with a space,或许与您遇到的问题类似。 回答者Communityisset给出了该问题的处理方式: Chec...
2018-04-28
What&apos;s the use of the [\b] backspace regex?
phw1252748提出了一个问题:What’s the use of the [\b] backspace regex?,或许与您遇到的问题类似。 回答者CommunityMartin Ender给出了该问题的处理方式: While al...
2018-04-16
回到顶部