---
title: "First HTML response by framework: Agent Ready HTML"
description: "Why do fetch-only agents like Claude's web fetch tool see an empty page on SvelteKit ssr = false or Nuxt ssr: false routes with client-side rendering?"
canonical: https://agentreadyhtml.com/guides/first-html-response-by-framework/
site: "Agent Ready HTML"
last_updated: 2026-11-18
date: 2026-11-18
section: "Guides"
---

# First HTML response by framework: Agent Ready HTML

> Why do fetch-only agents like Claude's web fetch tool see an empty page on SvelteKit ssr = false or Nuxt ssr: false routes with client-side rendering?

Source: https://agentreadyhtml.com/guides/first-html-response-by-framework/
Site: Agent Ready HTML
Last reviewed: 2026-11-18

# Client-only routes leave fetch-only agents an empty shell

In short

Claude's web fetch tool does not support websites dynamically rendered with JavaScript, and an empty app shell prevents fetch-only agents from reading the page. SvelteKit's ssr = false renders an empty 'shell' page, and Nuxt's ssr: false gives client-side only rendering with a loading screen.

Published 18 November 2026

Claude's [web fetch tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool) retrieves the full text content from the specified URL, and Anthropic states that it does not support websites dynamically rendered with JavaScript. Cloudflare's [Markdown for Agents](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/) works from the same starting point: it fetches the original HTML version from the origin and converts it to Markdown before serving it to the client. In controlled probes reported in [Vercel's agent guide](https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents), a fetch-only client could not retrieve an answer available only through JavaScript, and the guide lists an empty app shell among the responses that prevent fetch-only agents from reading the page.

Related: [Client-side rendering and agents](https://agentreadyhtml.com/client-side-rendering-and-agents/)

## What each framework's docs give as the default

-   **Astro.** Astro prerenders every route by default and lets single routes opt out with export const prerender = false. Its UI components render to HTML and CSS by default, with client-side JavaScript stripped out, and one turns into an interactive island only through a `client:*` directive, while the rest of the site stays static HTML ([Astro islands](https://docs.astro.build/en/concepts/islands/)).
-   **Next.js.** Layouts and pages start as Server Components, which fetch data and render parts of the UI on the server ([Server Components page](https://nextjs.org/docs/app/getting-started/server-and-client-components)). Client Components and the RSC Payload are used to prerender HTML, and on first load that HTML shows a fast non-interactive preview of the route.
-   **Nuxt.** By default Nuxt uses universal rendering: it runs the Vue.js code in a server environment and returns a fully rendered HTML page. Because the content is already in the HTML document, its docs say crawlers can index it without overhead ([Nuxt rendering modes](https://nuxt.com/docs/guide/concepts/rendering)).
-   **React Router.** Three strategies appear on the [rendering page](https://reactrouter.com/start/framework/rendering) (client side rendering, server side rendering and static pre-rendering), and the page shows `ssr: false` for the first and `ssr: true` for the second. Server side rendering requires a deployment that supports it.
-   **SvelteKit.** First on the server, then in the browser: any component renders (or prerenders) on the server and reaches the client as HTML, then renders again in the browser for hydration ([SvelteKit page options](https://svelte.dev/docs/kit/page-options)).

Related: [How to move the answer into the initial HTML without a rewrite](https://agentreadyhtml.com/guides/move-answer-into-initial-html/)

Related: [Universal rendering](https://agentreadyhtml.com/glossary/universal-rendering/)

## Settings that fix HTML at build time

Astro's default output mode is `'static'` ([on-demand rendering guide](https://docs.astro.build/en/guides/on-demand-rendering/)). After adding an adapter, `output: 'server'` server-renders all pages by default, and `export const prerender = true` returns any single page or endpoint to static. Astro says the `'server'` mode only switches the default rendering behavior.

A Next.js [static export](https://nextjs.org/docs/app/guides/static-exports) begins with `output: 'export'` in `next.config.js`. Server Components then run during the build and render into static HTML for the initial page load, and Client Components are prerendered to HTML during `next build`. For data fetching on the client, the [static exports guide](https://nextjs.org/docs/app/guides/static-exports) uses a Client Component with SWR, and the example component returns `'Loading...'` until data arrives. [ISR](https://nextjs.org/docs/app/guides/incremental-static-regeneration) is not supported when creating a static export. With Cache Components, [Partial Prerendering](https://nextjs.org/docs/app/getting-started/partial-prerendering) is the default and generates a static shell of HTML for initial page loads.

Running `nuxt generate` or `nuxt build --prerender` renders every page as a separate static HTML file by default, with no server endpoints in the output ([Nuxt rendering](https://nuxt.com/docs/guide/concepts/rendering)). Hybrid rendering is not available with `nuxt generate`.

React Router takes a `prerender` function in the config that returns the list of URLs to prerender at build time. For those URLs, pre-rendering generates static HTML and client navigation data payloads, and route loaders fetch the data at build time ([rendering strategies](https://reactrouter.com/start/framework/rendering)).

In SvelteKit, export `prerender = true` from a page, or from the root layout to prerender everything except pages marked not prerenderable ([SvelteKit options](https://svelte.dev/docs/kit/page-options)). For a page to be prerenderable, any two users hitting it directly must get the same content from the server.

## Settings that remove server HTML

-   **Nuxt.** Client-side only rendering comes from `ssr: false` in `nuxt.config.ts`, and with it you should place a loading screen in `app/spa-loading-template.html` ([Nuxt docs](https://nuxt.com/docs/guide/concepts/rendering)). Nuxt warns that search engine crawlers won't wait for the interface to be fully rendered on their first try to index the page.
-   **React Router.** For a Single Page App, `ssr: false` disables server rendering. At the level of one route, a `clientLoader` avoids server rendering and fetching for that route's portion of the UI ([React Router page](https://reactrouter.com/start/framework/rendering)).
-   **SvelteKit.** An empty 'shell' page is what `ssr = false` renders, and the docs say that in most situations this is not recommended ([SvelteKit docs](https://svelte.dev/docs/kit/page-options)). Placed in the root `+layout.js`, it makes the whole app render only on the client. The opposite switch, `csr = false`, ships no JavaScript to the client, so the page should work with HTML and CSS only. If both are false, nothing is rendered.

## Per-route and whole-app switches

Astro takes `export const prerender` at the top of each page or endpoint, while `output: 'server'` flips the site-wide default ([Astro docs](https://docs.astro.build/en/guides/on-demand-rendering/)). Nuxt sets `ssr` for the whole app in `nuxt.config.ts`, and its `routeRules` give `ssr: false`, `prerender` or `swr` to sections of a site matched by patterns like `'/admin/**'` ([Nuxt route rules](https://nuxt.com/docs/guide/concepts/rendering)). In React Router, `ssr` is a global setting, though individual routes can still be statically pre-rendered ([React Router docs](https://reactrouter.com/start/framework/rendering)). SvelteKit options go in `+page.js` or `+page.server.js` for one page, a shared `+layout.js` for a group, or the root layout for the whole app, and child layouts and pages override values set in parent layouts ([SvelteKit](https://svelte.dev/docs/kit/page-options)). Next.js places `revalidate` in the page file itself, as in its `app/blog/[id]/page.tsx` example ([Next.js ISR](https://nextjs.org/docs/app/guides/incremental-static-regeneration)).

## Checking a route

Request the route without running JavaScript and read what comes back. Per [Vercel's guide](https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents), the request should end with a 200 response, intermediate 301 or 308 redirects are acceptable, and the returned HTML should contain the answer. A curl request cannot confirm whether a real agent is blocked, and the guide names server logs as the best operational check.

Related: [Plain Fetch viewer](https://agentreadyhtml.com/viewer/)

## How to choose

On Astro, stay in the default `'static'` mode until you are sure that most or all pages will render on demand, as the [Astro guide](https://docs.astro.build/en/guides/on-demand-rendering/) advises, and add the opt-out only at the top of each individual page or endpoint you want rendered on demand.

On Next.js, keep the content an agent must read in the initial HTML, server-rendered or prerendered, as [Vercel's agent guide](https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents) advises, rather than injected by a single-page app after load.

On Nuxt, keep the default universal rendering, which the [Nuxt docs](https://nuxt.com/docs/guide/concepts/rendering) say optimizes search engine indexing, and give a section that must render only in the browser `ssr: false` through `routeRules`.

On SvelteKit, keep `ssr = false` for a page that cannot be rendered on the server, the case the [page options docs](https://svelte.dev/docs/kit/page-options) give for it (browser-only globals like `document`). SvelteKit's [page options docs](https://svelte.dev/docs/kit/page-options) say not to add `export const ssr = false` to the root `+layout.js` when the goal is a statically generated site.

## Sources

1.  [Astro: On-demand rendering](https://docs.astro.build/en/guides/on-demand-rendering/) https://docs.astro.build/en/guides/on-demand-rendering/, read 18 November 2026
2.  [Astro: Islands architecture](https://docs.astro.build/en/concepts/islands/) https://docs.astro.build/en/concepts/islands/, read 18 November 2026
3.  [Next.js: Server and Client Components](https://nextjs.org/docs/app/getting-started/server-and-client-components) https://nextjs.org/docs/app/getting-started/server-and-client-components, read 18 November 2026
4.  [Next.js: Static Exports](https://nextjs.org/docs/app/guides/static-exports) https://nextjs.org/docs/app/guides/static-exports, read 18 November 2026
5.  [Next.js: Incremental Static Regeneration](https://nextjs.org/docs/app/guides/incremental-static-regeneration) https://nextjs.org/docs/app/guides/incremental-static-regeneration, read 18 November 2026
6.  [Next.js: Partial Prerendering](https://nextjs.org/docs/app/getting-started/partial-prerendering) https://nextjs.org/docs/app/getting-started/partial-prerendering, read 18 November 2026
7.  [Nuxt: Rendering Modes](https://nuxt.com/docs/guide/concepts/rendering) https://nuxt.com/docs/guide/concepts/rendering, read 18 November 2026
8.  [React Router: Rendering Strategies](https://reactrouter.com/start/framework/rendering) https://reactrouter.com/start/framework/rendering, read 18 November 2026
9.  [SvelteKit page options](https://svelte.dev/docs/kit/page-options) https://svelte.dev/docs/kit/page-options, read 18 November 2026
10.  [Anthropic: Web fetch tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool) https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool, read 18 November 2026
11.  [Cloudflare: Markdown for Agents](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/) https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/, read 18 November 2026
12.  [Vercel: Make your site readable by AI agents](https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents) https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents, read 18 November 2026

Last reviewed 18 November 2026

Edition

Crawl

2026-11-04

Page updated

2026-11-18

Method

How the viewer reads a page, how a file is graded and how a platform is scored: [the method page](https://agentreadyhtml.com/method/).
