Hacker News new | ask | show | jobs
by victor106 3037 days ago
Is there anyway to use turbolinks with a java backend? Or is it only specific to rails?
3 comments

You can. Here's a blog post from somebody who uses it with an Elixir backend.

https://changelog.com/posts/why-we-chose-turbolinks

Turbolinks also works really well for static sites because all you have to do is drop in the Javascript and use it.
Allow me plug something. If you just want to "AJAXify" a few links and forms you could try the splice-into behavior from this repo:

http://quickenloans.github.io/Behaviors.js/

It has no server-side dependencies and should be easy enough to use. But it doesn't use push history, which limits its usefulness for more extensive use cases.

I don't think Turbolinks is a good idea from a usability standpoint. Too many UIs have a similar bar at the top, and they mean different things: a browser's loading bar, a website's loading bar, a website's read-progress, etc. I think it increases the user's cognitive load (at least for this user) to figure out which kind of bar it is and why the top of the page is animating.

Turbolinks also makes websites appear extremely slow when on slow connections. It's much more frustrating to sit there with a loading bar hovering at 20-30% than to see a spinner.