Half the JavaScript on a static FAQ page never runs, and much of it is framework server code
A developer found that a prerendered FAQ page, which has no interactive elements, loads 19 JavaScript chunks, and about half of their code never executes in the browser. Using V8 precise coverage via the Chrome DevTools Protocol, they measured roughly 49 percent execution across repeated runs, with timing variations from idle work and router prefetches. Legal pages served as a control and showed a higher proportion of executed code because they contained mostly framework code. Two chunks containing about 98 KB of framework server-side rendering machinery, which the browser never uses, were identified by their string tables. The author attributes this to a single bundle graph where server and client code share modules, rather than to any bug in the app's own code.
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