Clarify image loading during View Transitions #8671
Size changes
<details>
📦 Next.js Bundle Analysis for react-dev
This analysis was generated by the Next.js Bundle Analysis action. 🤖
This PR introduced no changes to the JavaScript bundle! 🙌<!-- __NEXTJS_BUNDLE_react-dev -->
</details>
<!-- Sticky Pull Request Commentnext-bundle-analysis -->
Does this match how we explain it in https://react.dev/reference/react/Suspense#waiting-for-an-image-to-load ?
This wording incorrectly limits image waiting to Suspense reveals. A qualifying image also blocks an ordinary Transition-driven <ViewTransition> update (for example, changing an existing image's src), so readers could wrongly conclude that a Suspense boundary is required. Restore the broader client-rendered View Transition scope.
The PR summary says these profile examples remove redundant alternative text, but this portrait still announces “Jack Pope” immediately before the adjacent text announces the same name. Use an empty alt so screen readers do not hear the name twice.
The PR description promises to explain why the image-loading examples use startTransition, but this revised section neither uses nor discusses it while the coordinated image example below still calls it. Please explain why this comparison relies on the Suspense reveal whereas the coordinated example marks the initiating update as a Transition, or align the examples and PR description.
The PR summary says these profile examples remove redundant alternative text, but this portrait still announces “Jack Pope” immediately before the adjacent text announces the same name. Use an empty alt so screen readers do not hear the name twice.
This added vanilla profile still duplicates the adjacent “Jack Pope” text in the image alternative text, contrary to the PR summary's stated cleanup. Make the portrait's alt empty here as well.
<!-- ccr-overview-v2 -->
Copilot review overview
🟡 Changes recommended
The image-waiting scope is incorrectly narrowed, and promised explanation and alternative-text cleanup remain incomplete.
Review effort: Balanced
Findings: 1 <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.png" alt="Medium severity" width="62" height="18" align="texttop"></picture> · 4 <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.png" alt="Low severity" width="62" height="18" align="texttop"></picture>
<details open>
<summary><strong>Open (5)</strong></summary>
</details>
<details>
<summary><strong>What changed in this PR</strong></summary>
Clarifies how images and fonts load during React View Transitions.
Changes:
<ViewTransition>.| File | Description |
| ---- | ----------- |
| ViewTransition.md | Clarifies Suspense reveal behavior. |
| Suspense.md | Updates image, font, and coordinated-loading examples. |
| img.md | Documents image waiting during View Transitions. |
</details>
---
💡 Configure MCP servers for context-aware, tailored reviews. <a href="https://docs.github.com/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=webui#mcp-servers-and-agent-skills" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn more in the docs.</a>
Approved these changes.
eps1lon
aurorascharff
Follow-up to #8658.
Summary
<ViewTransition>update<ViewTransition>in both the<img>and Suspense referencesstartTransitionValidation
eslint src/content/reference/react-dom/components/img.md src/content/reference/react/Suspense.mdnode scripts/headingIdLinter.jsgit diff --check