Warum Google und KI-Suchen bei JavaScript-Seiten oft nichts sehen
Besucher sehen den Seiteninhalt, weil ihr Browser JavaScript ausfuehrt. Ein Crawler erhaelt oft nur die erste HTML-Antwort und sieht eine leere Huelle, wenn der Haupttext dort nicht enthalten ist. Googlebot fuehrt JavaScript zwar aus, aber das Rendern laeuft erst nach dem Crawlen in einer Warteschlange.

Posted on Nov 30 • Originally published at justmakeaiwork.com
This guide is for a page that looks fine to visitors but shows up empty — or not at all — in search results. If visitors themselves see a blank page, use the blank page guide instead: that is a different failure with different causes.
You need the exact page URL, a desktop browser, and access to Google Search Console for the site. If you do not have Search Console set up, you can still do steps 1 and 2; step 3 needs it.
Keep a saved copy of the site before changing anything, and change one thing at a time so you can tell which change helped.
Your route: See what a crawler sees → Check what robots.txt blocks → See what Googlebot rendered → Fix the page so its text is in the first HTML → Re-test.
Open the page in your browser and view its source — in most browsers, right-click the page and choose "View page source", or type view-source: before the URL in the address bar. Then search the source (Ctrl+F or Cmd+F) for a distinctive sentence from the page: your main heading, or a phrase from the first paragraph.
Also check the title in the source. If the <title> is a generic placeholder such as "React App" or "Vite App", search engines may show that placeholder instead of your real title, even when the visible page has the right one. Note it down: it is part of the same repair.
Do not be reassured by a fast page. A page can load instantly for a visitor and still send almost no content in its first HTML response.
Also check whether the page URL itself is disallowed. If it is, Google will not fetch the page at all, and no rendering fix will help until that rule changes.
If you find a blocking rule, do not edit robots.txt yet. Note the exact line, and ask your AI coding assistant to explain why it is there. One caution about what robots.txt is not: it is not access protection. It only tells compliant crawlers where not to go — anyone can ignore it, so a file that must stay private needs real access control, such as a login, not a Disallow line. Unblocking the page's public files therefore does not expose anything that is properly protected. The repair in step 4 includes asking the assistant to unblock only the files the public page needs.
If your site has no robots.txt file, that is fine: an absent file means nothing is blocked by it, and you can move on.
Guessing from the source is not enough. Google Search Console's URL Inspection tool shows you what Googlebot fetched and rendered for a specific URL, including a screenshot of the rendered page and the HTML it saw.
In Search Console, open URL Inspection, enter the page URL, and choose "Test live URL". Know what that test is: it fetches your page fresh, at the moment you run it, and renders that copy — it shows whether Google can render the page as it exists now. It is not the copy Google has stored from its last regular crawl; for that, read the inspection result without running a live test. A page can pass the live test today and still appear in search as the old, empty stored version until the normal crawl and render queues reach it again.
When the test finishes, open "View tested page" and look at two things:
Record what the test showed, with the date. You will compare it with the re-test in step 5.
Prepared example, not a recorded site test. A fictional bakery site has a homepage that visitors see perfectly: a heading, opening hours and a menu. Search results show nothing but the domain name.
A useful repair brief for the site's AI coding assistant would be:
After the repair, the expected checks are: the heading appears in the page source, robots.txt no longer blocks the page's public files, and the URL Inspection test shows the heading in the screenshot and the tested HTML. These are expected outcomes to verify, not a claimed successful fix.
After the repair is published, repeat step 3 on the same URL: run "Test live URL" again and compare the new screenshot and HTML with the ones you recorded. If the heading now appears, Google can render the repaired page on a fresh fetch. The version search shows updates only after the normal crawl, render and indexing queues reach the page again.
Then, in URL Inspection, choose "Request indexing" for the page. This asks Google to crawl it again; it does not guarantee a ranking or immediate appearance in results.
The bakery example, observations and repair brief were prepared for this tutorial. No live site, customer incident or successful repair is claimed. This article helps you find out what a crawler sees and what to ask your builder to change; it does not guarantee a ranking or a date by which a page will appear in search results.