prsona
Get started
Medium: fix this month

Google can't see my website content: pages that only fill in with JavaScript

Last reviewed

Your pages arrive empty and only fill in once JavaScript runs.

JavaScript-only content means the server sends a nearly empty page, and the words, links and images are added afterwards by scripts running in the browser. Visitors see a normal site. Google can run those scripts, but it does so later and not always completely, while many other crawlers, link preview apps and AI tools read only the empty first version. The usual fix is to render pages on the server or prerender them.

Why JavaScript-only page content costs you customers

A crawler that sees a blank page has nothing to rank, quote or preview. Google may index your content after a delay, but new pages and edits take longer to show up, and anything that fails while rendering is simply missed. Other search engines, AI answer services and social apps often never run the scripts at all, so your business can be absent from the places customers increasingly ask questions.

What usually causes JavaScript-only page content

  • The site was built as a single-page app on a JavaScript framework with no server rendering
  • A site builder or embedded widget loads the main content from a script after the page opens
  • Text is pulled in from an outside service, such as a booking or listings feed, once the page has loaded
  • A developer switched server rendering off to solve a different problem and never turned it back on
  • Pages wait for a cookie banner or login check to finish before showing any content

How to check for JavaScript-only page content yourself

  1. In Chrome, right-click any page, then choose "View page source". That window shows exactly what the server sends. Search it with your browser's find shortcut for a sentence you can read on screen. If it is missing, JavaScript adds it.
  2. In Chrome, open Settings, then Privacy and security, then Site settings, then JavaScript, and add your site under "Not allowed to use JavaScript". Reload the page. A blank or near-empty screen confirms the problem. Remove the block afterwards.
  3. In Google Search Console, inspect a page address, choose "Test live URL", then "View tested page". The HTML and screenshot there show what Google sees once it has rendered the page.
  4. Share the page address in a text or an unpublished post draft. A card with no headline or summary can be another sign the content is not in the first version of the page.

How to fix JavaScript-only page content

  1. Ask your web developer which rendering setup the site uses, and whether its framework can render on the server or generate static pages, both of which put content into the page before it is sent.
  2. Have your developer move the pages that matter most, such as the homepage, services, locations and contact, to server-side rendering or prerendering first.
  3. Make sure your developer also places titles, descriptions, canonical tags and Open Graph tags in the server-sent page, not only the visible text.
  4. If a full rebuild is not possible yet, ask your developer about prerendering, which saves a finished copy of each page that crawlers and visitors both receive.
  5. Once the change is live, run the Search Console live test on your main pages yourself, and have your developer add "view source shows the words" to every release check from then on.

How Prsona catches JavaScript-only page content

Prsona checks whether your pages carry their content before any scripts run, and flags a site where the text only appears once JavaScript builds it. The finding names an example page for your developer to open.

Prsona looks for JavaScript-only page content as part of technical SEO monitoring.

Check whether search engines receive your words or an empty shell.

Questions about JavaScript-only page content

Can Google read JavaScript websites?

Yes, mostly. Google runs JavaScript in a version of Chrome, but pages wait in a queue to be rendered, and errors or slow scripts can leave parts unseen. Google itself still recommends rendering on the server or prerendering, pointing out that not every bot can run JavaScript. Relying on rendering works, just less dependably than sending the content directly.

Do AI tools see content that loads with JavaScript?

Often not. Many crawlers that gather pages for AI answers, along with most link preview apps, read only what the server sends and do not run scripts. If your services and prices exist only after JavaScript builds them, those tools may find nothing to quote. Putting the text in the first response reaches every reader.

Sources