From 4c5382423587eaf984d4e6dfe157972187c40fdc Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 3 Nov 2021 15:26:25 -0700 Subject: [PATCH] docs: committed navigation (#10023) --- docs/src/navigations.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/src/navigations.md b/docs/src/navigations.md index 5c60bd65d2..6c930526ba 100644 --- a/docs/src/navigations.md +++ b/docs/src/navigations.md @@ -12,10 +12,11 @@ to wait for page navigations and loading to complete. Playwright splits the process of showing a new document in a page into **navigation** and **loading**. -**Navigations** can be initiated by changing the page URL or by interacting with the page (e.g., clicking a link). -Navigation ends when response headers have been parsed and session history is updated. The navigation intent may be -canceled, for example, on hitting an unresolved DNS address or transformed into a file download. Only after the -navigation succeeds, page starts **loading** the document. +**Navigation starts** by changing the page URL or by interacting with the page (e.g., clicking a link). +The navigation intent may be canceled, for example, on hitting an unresolved DNS address or transformed into a file download. + +**Navigation is committed** when the response headers have been parsed and session history is updated. Only after the +navigation succeeds (is committed), the page starts **loading** the document. **Loading** covers getting the remaining response body over the network, parsing, executing the scripts and firing load events: