By default, all internal links will be funneled through Turbolinks, but you can opt out by marking links with data-no-turbolink.
Turbolinks is designed to be as light-weight as possible (so you won't think twice about using it even for mobile stuff). It does not require jQuery or any other framework to work. But it works great with jQuery or Prototype or whatever else have you.
You can use
Turbolinks.visit(path) to go to a URL through Turbolinks.
Like pjax, this naturally only works with browsers capable of pushState. But of course we fall back gracefully to full page reloads for browsers that do not support it.
- CSS/JS asset change detection and reload
- Add a DOM cache for faster back button
- Remember scroll position when using back button