In short
- Googlebot crawls, then queues the page for rendering in headless Chromium when resources allow, and indexes the rendered HTML; Google’s own guidance still calls server-side or pre-rendering "a great idea", because not all bots can run JavaScript. OpenAI’s and Anthropic’s crawler pages make no statement that their bots render at all.
- We prerender every sitemap route inside the image build with the browser the product already ships, and fail the build on an empty page, a sign-in page, a missing description or missing structured data. No framework was added and no server renders on request.
- Google states that you do not need llms.txt, special markup, Markdown or "chunked" content to appear in its AI features, and that it ignores such files. We keep a plain llms.txt because it costs one file; we count on nothing from it.
About this article
- Format
- Case study: what happened when we did it ourselves, with dates.
- Written for
- Developers who own their tests · Engineering managers
- Where it applies
- Every market. The rules that differ by country are on the country pages.
Our public site is the same Vite and React application as the product. A crawler that does not execute JavaScript requests a page and receives a document whose body is one empty div and a script tag. Google handles that: its documentation describes three phases, crawl, render and index, with rendering done in a separate queue by headless Chromium "once Google’s resources allow", which may be seconds or longer. Most other crawlers, as far as their vendors document it, do not render at all; OpenAI’s and Anthropic’s crawler pages describe what their bots are for and how robots.txt controls them, and say nothing about JavaScript. So for the engines that now answer "which tool should I use for X", we did not exist. This is the fix we shipped, the two things it deliberately does not do, and what happened after launch.
What we did not do
The textbook answer is a server-rendering framework. We rejected it for this site. The product runs on one eight-vCPU server that also runs CPU-only local inference for the platform’s intelligence features; server rendering spends CPU on every page view, and that CPU is already spoken for. Rewriting the front end of a large codebase for a hundred public pages is also the wrong trade. Our rule is reuse before write, and we already ship a browser.
Prerender at build with the browser we already have
Playwright is a core dependency of the product; the recorder runs on it. The prerender script starts a small static server over the built bundle, reads the list of public routes from sitemap.xml, loads each route in headless Chromium, waits for the page to settle, and writes the rendered HTML to dist/<route>/index.html. The web server serves that file when the path is requested, and the same HTML becomes the normal application for a person. It runs inside the image build: a deploy cannot skip it, and the build fails if it fails.
Fail loud, not empty
A prerender that silently writes an empty shell is worse than no prerender, because it looks done. Each route is checked four ways before its file is written: the visible text must exceed a minimum length; the page must not be the sign-in screen, which is what a public route renders when it is missing from the public allowlist, and this check caught exactly that once; a meta description must exist; and routes that declare structured data must contain a JSON-LD block. Any failure fails the build and names the route. A separate validator then reads the structured data of every route; on 27 October 2026 that was 129 pages prerendered, the 126 sitemap routes plus three US-English editions that are prerendered for people but consolidated into their source pages for search, and 126 routes validated with none failing.
The sitemap is the contract
Routes come from the sitemap, and the sitemap is drift-tested: a blog article or a documentation guide that exists in the data without a sitemap entry fails the test suite, a guide marked "planned" that sneaks into the sitemap fails it too, and since 25 October 2026 a sitemap date may move only when the content behind it changed. Adding a page means adding content and one sitemap line; the build does the rest.
In the product
robots.txt, and what Google says you do not need
We name each crawler we know about in robots.txt and record the decision beside it. Search and answer bots, which fetch pages to cite them, are allowed; OpenAI recommends allowing OAI-SearchBot for exactly that reason, and names GPTBot as the one whose disallow means "do not train on this". Anthropic names ClaudeBot for training, Claude-User for a user’s question and Claude-SearchBot for search, and states that its bots honour robots.txt. Training bots are allowed on our site too, for now and on purpose: before we have published research worth protecting, being known to the models matters more to us than being withheld from them.
We also ship an llms.txt with plain facts and links. Google is explicit that it does not read it: its guide to generative AI features says you do not need to create machine-readable files, AI text files, markup or Markdown to appear in Google Search, that there is no requirement to break content into pieces for AI, and that you do not need to write in a special way for it. The file costs us nothing, so it stays; we count on nothing from it.
What happened after launch
The site went live on its own domain on 11 October 2026, and from that day the noindex that had protected a placeholder domain was switched off by one configuration value. We keep an address-verified ledger of crawler requests, checked against each vendor’s published address ranges rather than the user-agent string. In the seven days to 27 October, Googlebot made 93 page fetches, 38 on the first day the ledger ran and about six a day by the end of the week, with no errors; it fetched the sitemap and robots.txt, and 70 of the 126 sitemap pages in the week the ledger had covered by then (it began on 20 October, nine days after launch). Search Console reported 116 pages indexed on 23 October. Bing’s crawler arrived in the last days of that week.
The ledger also showed where the small budget went: the single most-fetched page was the contact form, because the site linked 24 variants of it with different query strings. We moved that parameter into the URL fragment on 27 October so a crawler sees one page. Nothing in the prerender needed to change; the lesson was that crawl demand on a young domain is the scarce resource, and every duplicate URL spends it.
What this does not solve
- Authority. A crawlable page with no links pointing at it is a crawlable page nobody ranks. Prerendering makes content visible; it does not make it referenced.
- Speed. Core Web Vitals depend on the bundle and the fonts, not on the prerender. The prerendered HTML paints fast; the interaction budget is separate work.
- Quality. This makes our content readable. Whether it is worth citing is a writing problem, and no build step fixes writing. Google’s guide puts it the same way: create content yourself from what you know, and provide expert or experienced takes that go beyond common knowledge.
Steal this
- If you already depend on a browser automation library, you already have a prerenderer.
- Derive the route list from something that is already tested, and test that.
- Make every prerender check fail the build. A warning is a log line nobody reads.
- Verify crawlers by address, not by user-agent string, before you draw conclusions from a log.
- Write down, in the robots file itself, why each bot is allowed or not. The next person will not remember.
Questions people ask
Can Google index a React single-page application?
Yes. Googlebot crawls the page, queues it for rendering in headless Chromium when resources allow, and indexes the rendered HTML; Google’s documentation says the wait can be seconds or longer and still recommends server-side or pre-rendering because not all bots run JavaScript. Prerendering at build time gives every crawler the finished HTML without a server rendering on request.
Do AI crawlers execute JavaScript?
Their vendors do not say so. OpenAI’s and Anthropic’s crawler pages describe what each bot is for and how robots.txt controls it, and make no statement about rendering. Treat the safe assumption as "no" and serve finished HTML.
Do I need an llms.txt file to appear in AI search?
Not for Google, which states that it does not need or read machine-readable AI files, special markup or Markdown, and that content need not be chunked or written specially. We keep a plain llms.txt because it costs one file; we count on nothing from it.
Should I block AI training crawlers?
That is a business decision, and the controls are documented: disallowing GPTBot tells OpenAI not to train on the site, and Anthropic’s ClaudeBot honours robots.txt. Search and answer bots, such as OAI-SearchBot and Claude-SearchBot, are what make a page citable; blocking those removes you from answers. We allow all of them for now and recorded the reasoning in the file.
How we measured this
- The prerender script, its route source (sitemap.xml) and its per-route checks are in our repository and run inside the frontend image build; the page and route counts are read from the 27 October 2026 build log.
- Crawl figures come from our own ledger of requests whose source addresses match the ranges each vendor publishes, sampled from the web server’s log every ten minutes since 20 October 2026; the indexed-page count is from Search Console on 23 October 2026. Statements about which crawlers render JavaScript are from the vendors’ documentation on the dates beside the references; crawlers change, so re-check before relying on them.
- Corrected 2026-10-27: the original said the site was not yet reachable and every page was noindexed; it has been live on dokimore.com since 11 October 2026.
Sources
- Google Search Central, JavaScript SEO basics (updated 4 March 2026): crawl, render and index; rendering queued "once Google’s resources allow"; pre-rendering "still a great idea" read
- Google Search Central, Optimizing your website for generative AI features (updated 10 July 2026): no AI files, markup, Markdown or chunking needed read
- Google Search Central, AI features and your website: no additional requirements to appear in AI Overviews or AI Mode read
- OpenAI, Overview of OpenAI crawlers: OAI-SearchBot, ChatGPT-User, GPTBot read
- Anthropic, crawler documentation: ClaudeBot, Claude-User, Claude-SearchBot; robots.txt honoured read
- Google Search Central, Verifying Googlebot: address ranges and reverse DNS read