Menu

A search box needed titles. The page sent 300 full records, 41,000 characters of meta descriptions.
πŸ“°

A search box needed titles. The page sent 300 full records, 41,000 characters of meta descriptions.

DEV Community: reactΒ·tong zhangΒ·10 days ago
#jRHJ0CLy
#devtoreact#devto#dev#payload#characters
Reading 0:00
15s threshold

A single search box on one home page was backed by 255,881 characters of serialized records. The box matches on titles. 106,706 of those characters were fields it can never display.

I crawled the home page of 114 sites in one content network, captured the raw HTML before any JavaScript ran, and measured how much of that HTML was Next.js App Router's inline Flight payload β€” the self.__next_f.push(...) calls that carry the React Server Component tree to the client.

30 of the 114 sites ran App Router. Across those 30 home pages, 48.2% of the combined HTML was Flight payload, and 3.5% was visible text. For comparison, the 84 sites that shipped plain server-rendered HTML landed at 16.5% visible text.

That gap is the whole story, and it has two different causes. Both are measurable, and both are fixable without abandoning the framework.

How the measurement works

No headless browser, no Lighthouse.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.