Skip to main content
Ask A Question
Notifications
You’re not receiving notifications from this thread.
Subscribe

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

General • Asked by Enrique Benitez

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



Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.