> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# SSR

A diagnostic screen for Lynx's snapshot SSR, which AngularLynx calls instant first-frame rendering. It checks that SSR is on and shows the snapshot your page produces.


## What it shows

- **`enableSSR`** — `lynx.config.ts` turns it on with `pluginAngularLynx({ enableSSR: true })`. See [`@blotch/angular-lynx-build`](/api/build/index.md).
- **Two global callbacks** — with SSR on, AngularLynx registers `ssrEncode()` and `ssrHydrate()` on the main thread, where the element tree is. [Lynx](/guide/glossary.md#lynx) calls the first to save the first render as a snapshot, and the second to reuse it on a later load. The status card checks that both exist.
- **A snapshot** — Run ssrEncode() turns the current element tree into JSON and shows its opcode count, its size and its first 500 characters.
- **Updates after hydration** — items you add later are created as usual. The snapshot covers only the first render.

## Related

- [Renderer internals](/guide/renderer-architecture.md)
