Skip to content

Commit 5be4eae

Browse files
committed
Update default options to speed up bar on fast pages
1 parent 2078b9f commit 5be4eae

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pace.coffee

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
defaultOptions =
22
# How long should it take for the bar to animate to a new
33
# point after receiving it
4-
catchupTime: 500
4+
catchupTime: 100
55

66
# How quickly should the bar be moving before it has any progress
77
# info from a new source in %/ms
88
initialRate: .03
99

1010
# What is the minimum amount of time the bar should be on the
11-
# screen
12-
minTime: 500
11+
# screen. Irrespective of this number, the bar will always be on screen for
12+
# 33 * (100 / maxProgressPerFrame) + ghostTime ms.
13+
minTime: 250
1314

1415
# What is the minimum amount of time the bar should sit after the last
1516
# update before disappearing
16-
ghostTime: 500
17+
ghostTime: 100
1718

1819
# Its easy for a bunch of the bar to be eaten in the first few frames
1920
# before we know how much there is to load. This limits how much of
2021
# the bar can be used per frame
21-
maxProgressPerFrame: 10
22+
maxProgressPerFrame: 20
2223

2324
# This tweaks the animation easing
2425
easeFactor: 1.25

0 commit comments

Comments
 (0)