Skip to content

Commit

Permalink
Update files/en-us/web/api/view_transitions_api/using/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: Vadim Makeev <[email protected]>
  • Loading branch information
chrisdavidmills and pepelsbey committed Jun 21, 2024
1 parent 3d58dd3 commit 8dd044f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions files/en-us/web/api/view_transitions_api/using/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ Let's explore what this looks like with a simple example HTML document:
```html
<!doctype html>
<html lang="en">
<head>
<!-- This will be render-blocking by default -->
<link rel="stylesheet" href="style.css" />
Expand All @@ -505,15 +506,16 @@ Let's explore what this looks like with a simple example HTML document:
#lead-content element is visible and fully parsed before
activating the transition -->
<link rel="expect" href="#lead-content" blocking="render" />
<body>
<h1>Page title</h1>
<nav>...</nav>
<div id="lead-content">
<section id="first-section">The first section</section>
<section>The second section</section>
</div>
</body>
</head>
<body>
<h1>Page title</h1>
<nav>...</nav>
<div id="lead-content">
<section id="first-section">The first section</section>
<section>The second section</section>
</div>
</body>
</html>
```
The result is that document rendering is blocked until the lead content `<div>` has been parsed, ensuring a consistent view transition.
Expand Down

0 comments on commit 8dd044f

Please sign in to comment.