# The empty div id="app" problem

> Client-rendered shells that agents read as blank pages — and how to fix them.

- Kind: Guides
- Published: 2026-10-22
- Author: AGEN team
- Canonical: https://www.getagen.xyz/blog/the-empty-div-problem

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.

## Check the page yourself

- Audit a URL: https://www.getagen.xyz/dashboard/new
- Let an agent repair markup (free): https://www.getagen.xyz/mcp
- All posts as markdown: https://www.getagen.xyz/blog.md
