Next.js Suspense boundaries over 12,800 bytes can hide article content from non-JavaScript crawlers
A developer found that their Next.js article content was placed after the footer inside a hidden block, visible only after a script ran, which non-JavaScript crawlers would miss. React's progressiveChunkSize option, defaulting to 12,800 bytes, causes larger Suspense boundaries to be outlined and streamed later. Tests with a plain Suspense boundary showed content moved to the hidden position once it exceeded roughly 14,000 bytes. The developer fixed this by removing the wrapper around the article and disabling a related check, and noted that the problem went unnoticed by type checks and Google's indexing. Their advice is to inspect raw HTML to see whether content is hidden.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in