1+ <script src =" https://rawgithub.com/HubSpot/pace/v0.4.0/pace.min.js " ></script >
2+ <link type =" text/css " href =" https://rawgithub.com/HubSpot/pace/v0.4.0/themes/pace-theme-barber-shop.css " ></link >
3+
14pace
25====
36
47Automatic page load progress bar
58
6- Include pace.js and the theme css of your choice on your page (as early as is possible), and you're done!
9+ Include [ pace.js] ( https://raw.github.com/HubSpot/pace/v0.4.0/pace.min.js ) and the
10+ [ theme] ( http://github.hubspot.com/pace/docs/themes/ ) css of your choice on your page
11+ (as early as is possible), and you're done!
712
813If you use AMD or Browserify, require in pace.js and call ` pace.start() ` as early in
914the loading process as is possible.
@@ -42,8 +47,9 @@ define(['pace'], function(pace){
4247Themes
4348------
4449
45- Pace includes a bunch of themes to get you started. Specify the theme of your choice as
46- an option, and include the appropriate css file.
50+ Pace includes a bunch of [ themes] ( http://github.hubspot.com/pace/docs/themes/ )
51+ to get you started. Specify the theme of your choice as an option, and
52+ include the appropriate css file.
4753
4854Collectors
4955----------
@@ -105,18 +111,12 @@ API
105111
106112Pace exposes the following methods:
107113
108- - ` Pace.start `
109-
110- Show the progress bar and start updating. Called automatically if you don't use AMD or CommonJS.
111-
112- - ` Pace.restart `
114+ - ` Pace.start ` : Show the progress bar and start updating. Called automatically if you don't use AMD or CommonJS.
113115
114- Show the progress bar if it's hidden and start reporting the progress from scratch. Called automatically
116+ - ` Pace.restart ` : Show the progress bar if it's hidden and start reporting the progress from scratch. Called automatically
115117whenever ` pushState ` or ` replaceState ` is called by default.
116118
117- - ` Pace.stop `
118-
119- Hide the progress bar and stop updating it.
119+ - ` Pace.stop ` : Hide the progress bar and stop updating it.
120120
121121Dependencies
122122------------
@@ -130,6 +130,11 @@ Pace is designed to support IE8+ (standards mode), FF 3.5+, Chrome, Safari 4+, O
130130mobile browsers. If you run into a compatibility issue, or can make a case for supporting something else,
131131please create an issue.
132132
133+ Size
134+ ----
135+
136+ pace.js is 4kb minified and gzipped. The themes vary between 0.5 and 4kb.
137+
133138Issues
134139------
135140
0 commit comments