turbolinks / turbolinks-classic

Classic version of Turbolinks. Now deprecated in favor of Turbolinks 5.
MIT License
3.54k stars 428 forks source link

Display Progress Bar only if loading time exceeds 4 seconds. #581

Closed ghost closed 9 years ago

ghost commented 9 years ago

I need to visualize the progress bar only if the time exceeds 4 seconds.

How can I do?

Thibaut commented 9 years ago

@javan should we provide an option for delaying the progress bar by n milliseconds?

ghost commented 9 years ago

Yes, please.

javan commented 9 years ago

Yes, we were just talking about this recently. And I think we should set a default of ~300-500ms because the progress bar actually makes loading feel slower for fast requests. Assigned myself to this one.

javan commented 9 years ago

Done https://github.com/rails/turbolinks/pull/608