diff --git a/handbook/drive.html b/handbook/drive.html index 1958c9a..6dacc07 100644 --- a/handbook/drive.html +++ b/handbook/drive.html @@ -152,7 +152,7 @@

Navigate with Turbo Drive

Turbo Drive is the part of Turbo that enhances page-level navigation. It watches for link clicks and form submissions, performs them in the background, and updates the page without doing a full reload. It’s the evolution of a library previously known as Turbolinks.

- +

Turbo Drive models page navigation as a visit to a location (URL) with an action.

Visits represent the entire navigation lifecycle from click to render. That includes changing browser history, issuing the network request, restoring a copy of the page from cache, rendering the final response, and updating the scroll position.

There are two types of visit: an application visit, which has an action of advance or replace, and a restoration visit, which has an action of restore.

@@ -214,6 +214,19 @@

Displaying Progress

During Turbo Drive navigation, the browser will not display its native progress indicator. Turbo Drive installs a CSS-based progress bar to provide feedback while issuing a request.

The progress bar is enabled by default. It appears automatically for any page that takes longer than 500ms to load. (You can change this delay with the Turbo.setProgressBarDelay method.)

diff --git a/reference/attributes.html b/reference/attributes.html index 108a357..3b84b40 100644 --- a/reference/attributes.html +++ b/reference/attributes.html @@ -171,6 +171,7 @@

preview during a Visit. +
  • data-turbo-visit-direction is added to the html element during a visit, with a value of forward or back or none, to indicate its direction.
  • aria-busy is added to html and turbo-frame elements when a navigation is in progress.
  • Meta Tags

    @@ -179,6 +180,7 @@

    Meta Tags

  • <meta name="turbo-cache-control"> to opt out of caching.
  • <meta name="turbo-visit-control" content="reload"> will perform a full page reload whenever Turbo navigates to the page, including when the request originates from a <turbo-frame>.
  • <meta name="turbo-root"> to scope Turbo Drive to a particular root location.
  • +
  • <meta name="view-transition" content="same-origin"> to trigger view transitions on browsers that support the View Transition API.
  • <meta name="turbo-refresh-method" content="morph"> will configure page refreshes with morphing.
  • <meta name="turbo-refresh-scroll" content="preserve"> will enable scroll preservation during page refreshes.