NavigationTransition: committed property

The committed read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the Navigation.currentEntry and URL displayed in the browser change to reflect that the navigation is committed. This happens after all of the navigation's precommit handlers are fulfilled.

The committed promise rejects if any of the precommit handlers reject.

Value

A Promise that resolves to undefined.

Examples

js
async function lockInNavigation() {
  await navigation.transition.committed;
  // Navigation has committed successfully
}

Specifications

Specification
HTML
# dom-navigationtransition-committed

Browser compatibility

See also