Re: [csswg-drafts] [css-view-transitions-2] Allow synchronous snapshots (#9400)

The performance characteristics of `use-view-transitions` are actually much worse than directly using `document.startViewTransition` directly.

<img width="1014" alt="Screenshot 2023-09-26 at 14 46 48" src="https://github.com/w3c/csswg-drafts/assets/7850794/5a77e514-ef42-49f8-9ca3-a80813643f59">

Using the native API directly takes about 1.5 seconds in this demo from click to transition end, whereas using it via `useViewTransition` takes about 4.8 seconds.

Likewise, with `useViewTransition`, `useEffect` callbacks are having to be flushed before the transition starts. Whereas with the native API they (correctly) aren't.

-- 
GitHub Notification of comment by mattgperry
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9400#issuecomment-1735484436 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 26 September 2023 12:52:42 UTC