Is there a way to make a Youtube style loading bar (the inter-page across the top bar) with turbo-links.
Turbolinks has loads of different callbacks so you could make a jumpy one across a few steps but is there a way to hook into the progress too?
Is there a way to make a Youtube style loading bar (the inter-page across the top bar) with turbo-links.
Turbolinks has loads of different callbacks so you could make a jumpy one across a few steps but is there a way to hook into the progress too?
nprogress-rails is probably just what you need.
Here's another brilliant JS from Hubspot, called Pace.
http://github.hubspot.com/pace/docs/welcome/
A jQuery Plugin Called NG Progress JS seem to be having the support for turbo links. Here are the NG Progress & alternatives.
http://www.webiyo.com/2013/09/youtube-style-ajax-progress-bar-using.html
Hope It Helps.
Assuming you have Turbolinks set up correctly add nProgress JS script to your Rails app asset pipeline i.e the JS and CSS.
Set up nProgress by adding this to your custom JS ...
And that's it.
Ps: Check out the nProgress Github page for more info.
Was brought up in https://github.com/rails/turbolinks/issues/265
Won't be added to Turbolinks, but shows you a simple reference for how to add it if you need to.
Nowadays a ProgressBar is included with turbolinks (v.2.5.3)