CodeByZach / pace

Automatically add a progress bar to your site.
https://codebyzach.github.io/pace/
MIT License
15.68k stars 1.9k forks source link

How to get current progress percent? #444

Open celorodovalho opened 7 years ago

celorodovalho commented 7 years ago

I need to get the percent of progress of Pace.js, but how?

dungagan commented 6 years ago

Me too

andreivictor commented 1 year ago

From v1.2.2, we can use progress or change events:

Pace.on('progress', function (progress) {
  console.log('Pace progres:  ', progress);
});

Pace.on('change', function (progress) {
  console.log('Pace progres:  ', progress);
})