pace icon indicating copy to clipboard operation
pace copied to clipboard

Changing speed of loading bar not working with chnging ghostTime

Open farooqte96 opened this issue 8 years ago • 1 comments

Hi @zackbloom

i am using pace.js to show the progress of a long running php script. I have set startOnPageLoad to false so that it may not start on page load but only when submit button is pressed. I am able to run it after button click but its ghostTime is not working accordingly and bar completes to 99% very fast and then wait for page to load. Can you tell how can i run this by adding delay of own choice.

Thanks

Js Code:

farooqte96 avatar Sep 06 '17 09:09 farooqte96

ghostTime just determines how long it waits after it's completed to remove progress widget.

If you're script runs at approx. the same speed each time you can try configuring the "maxProgressPerFrame" setting.

Here is a full list of the other options you can play with, including descriptions: https://github.com/HubSpot/pace/blob/master/pace.coffee

Jaded-Design avatar Nov 30 '17 22:11 Jaded-Design