New Discussion

Notifications

You’re not receiving notifications from this thread.

How do I add a loading spinner and bar like this site?

5
General

I know it's a turbolinks feature but I don't know how to make it appear or how to do it, it's pretty nice the way GoRails handles the loading with that spinner and bar, how is it done?

Thanks in advance!

Hey Enrique! I'm actually just using the stock Turbolinks progress bar that's builtin. I think the only thing you have to do is add a little CSS to make sure that it displays.

https://github.com/turbolinks/turbolinks-classic#progress-bar

Also if you're using Turbolinks 5 (I've yet to upgrade) then I think it also has the same progress bar.

Thank you Chris! I got it working now.
Easy task, yeah just needed to add the CSS :)

Super nice that it's included in the library isn't it? :D

Indeed :D

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 88,275+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.