Skip to content

Commit 73cbaec

Browse files
authored
Clarify solutions and add pros and cons section
Updated section headings to clarify proposed solutions and added pros and cons of the different solutions.
1 parent 9d39fb0 commit 73cbaec

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

css-view-transitions-2/two-phase-transition-explainer.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The instant part of the transition can only use information knows to the old pag
3838

3939
To achieve that, proposing two provide the following:
4040

41-
## Allowing the author to control the commit scheduling
41+
## Solution 1: Allowing the author to control the commit scheduling
4242

4343
```js
4444
// Returns a boolean if the page is prerendered/BFCached and not render-blocked.
@@ -82,7 +82,7 @@ navigation.addEventListener("navigate", event => {
8282
- Only same-origin navigations without cross-origin redirects are deferrable.
8383

8484

85-
## Allowing animations to defer commit for a short period
85+
## Solution 2: Allowing animations to defer commit for a short period
8686

8787
The above knobs can be very effective, but might also require expertise to get right.
8888

@@ -94,7 +94,12 @@ The likely use case to let an animation continue till the end, so we can perhaps
9494
}
9595
```
9696

97-
## Security & Privacy Questionnaire
97+
## Pros and cons of the different solutions
98+
99+
While deferring page swap provides full flexibility, it also needs care to avoid some footguns that can cause unwanted navigation delays.
100+
However, the current plan is to enable that first for power users, and take learnings from that experience into the higher level CSS-based solution.
101+
102+
# Security & Privacy Questionnaire
98103

99104
01. What information does this feature expose,
100105
and for what purposes?

0 commit comments

Comments
 (0)