Blog · Guides
The empty div id="app" problem
· AGEN team
Client-rendered shells that agents read as blank pages — and how to fix them.
A single-page app that renders entirely in the browser looks like a blank document to anything that reads the first HTML response. The div is empty because the JavaScript has not run yet — and some agents never run it.
Server-rendering the shell, streaming the primary content, or shipping a prerendered route for the pages that matter all solve this. So does making the initial HTML carry the headline, the navigation, and the links an agent is most likely to follow.
AGEN flags this explicitly: if the rendered DOM and the initial document disagree about whether there is content, that is a finding, not a footnote.