Skip to content

DOC: clarify SSR metadata hoisting for fragments - #8561

Open
Whning0513 wants to merge 1 commit into
reactjs:mainfrom
Whning0513:fix/8559-ssr-fragment-metadata
Open

DOC: clarify SSR metadata hoisting for fragments#8561
Whning0513 wants to merge 1 commit into
reactjs:mainfrom
Whning0513:fix/8559-ssr-fragment-metadata

Conversation

@Whning0513

Copy link
Copy Markdown

This clarifies the SSR edge case for <title> when React renders only a fragment inside an existing document. In that setup, the initial server response cannot move the tag into the real HTML <head>, so SEO-critical metadata should also be rendered by the server-side document template.

Fixes #8559

Copilot AI review requested due to automatic review settings July 29, 2026 20:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Five Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/404 127.56 KB (🟢 -31 B) 242.71 KB
/500 127.57 KB (🟢 -31 B) 242.72 KB
/[[...markdownPath]] 130.01 KB (🟢 -31 B) 245.16 KB
/errors 127.81 KB (🟢 -31 B) 242.96 KB
/errors/[errorCode] 127.79 KB (🟢 -31 B) 242.94 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Suggestion]: Clarify SSR metadata hoisting behavior for fragment-based rendering

2 participants