Title: Published pages serialize unused component definitions into RSC payload · Issue #447 · ycode/ycode · GitHub
Open Graph Title: Published pages serialize unused component definitions into RSC payload · Issue #447 · ycode/ycode
X Title: Published pages serialize unused component definitions into RSC payload · Issue #447 · ycode/ycode
Description: On published pages, PageRenderer still passes the full components array into LayerRendererPublic. In our project, this caused content-heavy published pages to exceed Googlebot’s 2 MB crawl limit. The visible HTML was much smaller; most o...
Open Graph Description: On published pages, PageRenderer still passes the full components array into LayerRendererPublic. In our project, this caused content-heavy published pages to exceed Googlebot’s 2 MB crawl limit. T...
X Description: On published pages, PageRenderer still passes the full components array into LayerRendererPublic. In our project, this caused content-heavy published pages to exceed Googlebot’s 2 MB crawl limit. T...
Opengraph URL: https://github.com/ycode/ycode/issues/447
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Published pages serialize unused component definitions into RSC payload","articleBody":"On published pages, `PageRenderer` still passes the full `components` array into `LayerRendererPublic`.\n\nIn our project, this caused content-heavy published pages to exceed Googlebot’s 2 MB crawl limit. The visible HTML was much smaller; most of the size came from the Next.js RSC/Flight payload.\n\nUpstream 1.27.8 already strips builder-only layer metadata, but `components={components}` still crosses the client boundary even when the page does not render any `richTextComponent` blocks.\n\nIn our fork, we tested a conditional approach:\n\n- detect whether the rendered page tree contains rich-text embedded components\n- pass `components={[]}` when not needed\n- strip component layer trees when they are needed\n\nThis reduced one page from about 2.6 MB to about 1.43 MB total document size, without changing visible output.\n\nQuestion:\nCould `LayerRendererPublic` avoid receiving the full components library unless rich-text embedded component rendering actually requires it?\n\nMeasurements:\n\nBefore:\n\n- `/en/solutions`: ~2.6 MB total document\n- visible HTML without scripts: ~409 KB\n- RSC/Flight: ~2.2 MB\n\nAfter conditional component stripping:\n\n- `/en/solutions`: ~1.43 MB\n- `/en/services`: ~1.21 MB\n- `/en/blog`: ~1.26 MB\n- `/en/works`: ~1.29 MB\n\nTested after merging upstream 1.27.8.\n\nDebugged with the help of OpenAI GPT-5.5 (model ID: openai/gpt-5.5).","author":{"url":"https://github.com/bauhem","@type":"Person","name":"bauhem"},"datePublished":"2026-07-16T19:08:52Z","url":"https://github.com/ycode/ycode/issues/447"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2beffa26-1c60-76d6-bd3e-7fac4ca5ddef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E372:2C8E49:1BC2D5:25BD96:6AFE37AB |
| html-safe-nonce | 92ca1259a4bbff3615192d55b7fb96b186f55e1b1567552ca50e3e7e4f6f9e6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzcyOjJDOEU0OToxQkMyRDU6MjVCRDk2OjZBRkUzN0FCIiwidmlzaXRvcl9pZCI6IjM4MDEzMzMxNjg3Mjg4NDgyOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b1876032534e5683009f437ddc0e4a206394935fea2429e5065385f8f44168c4 |
| hovercard-subject-tag | issue:4905184598 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ycode/ycode/447/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b35333aedbbe3ce6340285c083f49ee8d37dcdb62e1ac3e808250825a1c6cc0/ycode/ycode/issues/447 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b35333aedbbe3ce6340285c083f49ee8d37dcdb62e1ac3e808250825a1c6cc0/ycode/ycode/issues/447 |
| og:image:alt | On published pages, PageRenderer still passes the full components array into LayerRendererPublic. In our project, this caused content-heavy published pages to exceed Googlebot’s 2 MB crawl limit. T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bauhem |
| hostname | github.com |
| expected-hostname | github.com |
| None | 260deedcf4630abb0a6b4aaa02fd2af70eab44d2529712694ceae59ca131b02e |
| turbo-cache-control | no-preview |
| go-import | github.com/ycode/ycode git https://github.com/ycode/ycode.git |
| octolytics-dimension-user_id | 65892203 |
| octolytics-dimension-user_login | ycode |
| octolytics-dimension-repository_id | 1165452593 |
| octolytics-dimension-repository_nwo | ycode/ycode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1165452593 |
| octolytics-dimension-repository_network_root_nwo | ycode/ycode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8b413ea7a9b010f4f2ebbb923b041b0d6091dd94 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width