Skip to content
AbsoluteFirst

Guides / Access

Pages are nearly empty until JavaScript runs

If the words are not in the HTML the server sends, assume a crawler never saw them.

Why it matters

A crawler works in two steps. First it downloads the HTML your server sends. Only later, and only for some crawlers, does it run the JavaScript that HTML refers to. Your site puts all of its content in step two.

Google does run JavaScript, but in a separate rendering queue that can lag the first fetch, and any script error or timeout leaves it with the empty page. The crawlers behind most AI assistants do not run JavaScript at all. To them this site is a blank page with a title.

The same is true for link previews in text messages and social posts, which read the raw HTML only.

How to fix it

  1. Decide where the HTML gets built. The three options are server-side rendering (the server builds each page on request), static generation (pages are built once at deploy), or prerendering (a build step saves the finished HTML of each route).
  2. For a marketing site, static generation is the simplest and fastest. Frameworks such as Astro, Next.js and Nuxt do it by default.
  3. Keep the interactive parts as JavaScript. Only the content a visitor reads needs to be in the HTML.
  4. After deploying, view the page source (not the inspector). Your headline and body text should be visible in it.

How we check it

We request each page again without JavaScript and count the words in the response. A pass needs the main content present in the raw HTML.

Where it sits in the plan

Stage 1 of 5, “Open the door”. These problems stop search engines from reaching or reading pages at all. Work on titles or speed is wasted on a page that cannot be indexed, so these come first.

Typical effort: half a day or more. In plain terms: ask your developer to make the site send its text in the page itself (server-side rendering or prerendering).

Does your site have this problem?

Scan it and see the evidence from your own pages.

Related guides