← The Serse journal

JavaScript SEO audit

Missing from the HTML audit? A three-view test for JavaScript SEO

Compare response HTML, the settled browser DOM and Google’s live render, then check the dated indexed record before diagnosing JavaScript SEO or changing rendering.

A missing heading is a finding, not a diagnosis

“Not in the HTML” can describe several different things. Response HTML is the markup returned for a particular HTTP request before browser scripts run. The browser DOM is the document tree after the browser has parsed that response and run scripts. Google’s live rendered HTML is the output from a Google testing tool’s request at a particular time. They are related observations, not interchangeable versions of one result.

Name the three observations

A browser may normalise malformed markup, and JavaScript can alter the DOM after the initial response. MDN explains why the HTML tree in DevTools can differ from View Source, which represents the source served by the server (MDN: The DOM versus view source). A screenshot is useful evidence of appearance, but it does not replace searching the rendered HTML for text, metadata and links.

Google documents crawling, rendering and indexing as stages. It can render JavaScript and use rendered HTML to index content and discover links. Some sites initially return an app shell that needs JavaScript to create the page. So a sparse response can coexist with a complete Google render. Equally, a complete-looking page in Chrome does not establish that Google received the same result (Google: JavaScript SEO basics).

What a static warning can and cannot establish

A static audit’s warning describes the input that audit received. It is not automatically a statement about the browser DOM, Google’s live render or the indexed record. The guide to using a free SEO scan is useful background on interpreting scan findings; this article narrows the question to how to test a suspected rendering gap. The distinction matters because a correct observation about one layer can still lead to an incorrect diagnosis about another.

Avoid both easy conclusions: neither “Google ignores JavaScript” nor “it works in Chrome, so Google sees it” is enough. Google notes that blocked pages or files can prevent rendering, and that its renderer may not fetch resources it considers non-essential to page content. Client-side analytics may also fail to represent all Googlebot and rendering-service activity (Google: Fix Search-related JavaScript problems). Evidence from each layer is needed to narrow the problem.

Build a comparison another person can repeat

Start with one exact public URL, not a template or a site-wide warning. Record the final URL after redirects, the time and time zone, the response status, the test tool and relevant conditions you know about, such as locale, consent, cache or authentication. Keep the settings needed to repeat the test. These details help expose cases where two tools appear to disagree because they reached different routes or versions.

Save the response HTML from the request under investigation. A scanner or command-line request is evidence of that particular request, not a substitute for a browser or Google test with a different request context. Likewise, a browser test in a logged-in session cannot establish what an unauthenticated visitor sees. The goal is not to make all requests identical; it is to document what each test actually observed.

Choose stable evidence tokens

Choose one distinctive text sentinel that should appear on the page, and one expected internal link with its destination. A service-area phrase or a specific sentence about what happens after an enquiry is better than a generic word such as “services”, which may appear elsewhere in navigation. Search for the exact text and destination in each output.

In a clean, unauthenticated browser profile, let the page reach a defined settled state: the expected text is present and the request meant to supply it has completed. Capture the DOM, a screenshot and the relevant network request. Do not rely on a guessed wait time alone; record the state and the dependency that produced it. The browser’s DOM can show script changes that are absent from the original response, which is why keeping both views matters (MDN: The DOM versus view source).

Then run Google’s URL Inspection live test for a site you manage, or use the Rich Results Test for a publicly available page where appropriate. Google documents that its troubleshooting tools can expose rendered DOM, loaded resources and JavaScript output or exceptions (Google: Fix Search-related JavaScript problems). Its help page explains how to view rendered HTML in the tested page, including through the Rich Results Test for a public URL outside a verified property (Google: View the rendered source). Inspect the HTML itself, not just the screenshot.

Put live and indexed states on a timeline

For each of the three outputs, record whether the exact sentinel appears and whether the expected link has the right destination. Record the result, not an impression such as “looks fine”. If content differs, note what differs: missing text, a link absent from the DOM, an error message or a failed resource. This makes the comparison falsifiable: another practitioner can repeat it and challenge the diagnosis with contrary evidence.

Keep the live test separate from Search Console’s indexed record. The live test is a current troubleshooting fetch; the indexed view describes information associated with Google’s last crawl. Search Console presents these as separate data sources. Google says the live test is less comprehensive than index information and its result is not used by Google (Google: Inspect and troubleshoot a single page). A clean live result does not show what an earlier crawl received; a current bad live result does not explain an older indexed state.

Put the indexed record’s last-crawl date, live-test time and relevant deployment time on one timeline. If the indexed crawl predates a release, it cannot show what the released page currently renders. If the live test is clean today, that does not prove a previous crawl saw the same content or that the page is indexed. For related context on Search Console checks, see the Search Console integration guide; the rendering diagnosis still depends on the specific evidence collected for the URL.

Worked example: a Geelong emergency-roof-repair page

Consider this explicitly hypothetical page: a Geelong roofing business publishes /emergency-roof-repairs/. Its useful content should explain the repair service, the suburbs covered, what happens after an enquiry, and how to reach the service-area and contact pages. A static scan reports no main heading or body copy. That finding is accurate about the response it fetched; cause and search impact remain open.

CheckpointIllustrative input or observationIntermediate interpretation
Exact page and responseFinal URL returns 200; response contains an app shell and #app, but not the suburb sentinel or expected linksThe static finding is reproduced. This does not establish what the browser or Google renders.
Clean browser runWith JavaScript enabled, heading and suburb copy appear after 2.3 seconds; the public-content API request returns 200The page can render in this browser context. This does not prove Google receives the same result.
Repeated Google live testsRendered HTML lacks the sentinel and service links; resource output shows the content API request failedThere is a repeatable difference worth investigating. The failing request is evidence; its cause is not yet established.
Edge-log clueA 403 for the endpoint appears in the same general test window, but there is no reliable request-level match to the Google testThe 403 makes access rules worth checking. A time-window match alone does not prove that this was Google’s request.
Controlled follow-upIn this teaching scenario, a separate unauthenticated test of the same public endpoint reproduces a 403, and configuration review identifies a rule that blocks that request classThere is evidence of an endpoint access problem for the intended public route, though the separate test does not by itself prove the exact cause of Google’s failed request.
Bounded change and retestThe rule is adjusted only for the intended public read-only endpoint; repeated live renders then contain the sentinel and linksThe sequence supports the diagnosis and the delivery check. It does not prove an indexing or ranking benefit.

All numbers and responses in this table are teaching assumptions, not observed results. In particular, the 403 that merely falls within the test window is a clue, not proof of a Google request. The additional controlled check and configuration review are further hypothetical evidence in this example. In a real audit, do not claim a log match unless the request can be reliably attributed; do not assume that a Google testing tool exposes a request identifier or that a timestamp alone identifies the source.

Read the failed dependency carefully

The browser’s successful API request shows that one ordinary browser context can obtain the content. The Google test’s missing text and failed resource show that the content did not appear in that live render. They do not, on their own, identify why. The time-adjacent 403 shifts the next investigation towards endpoint access, but it is not enough to pin the failure on a WAF or a specific rule.

The controlled follow-up changes the interpretation: the endpoint is intended to be public, an unauthenticated request to that endpoint reproduces the 403, and configuration review identifies a rule consistent with that result. This supports a bounded access fix. It still does not prove that every detail of Google’s request matches the separate test. That uncertainty is why the same live-render acceptance check matters after the change.

Choose a bounded intervention

In this hypothetical, the developer adjusts access to the public read-only endpoint without changing private routes or serving a search-only version of the page. The acceptance check is not “the developer changed the rule”. It is that repeat tests of the same URL show the same sentinel and destination in Google’s rendered HTML, while the ordinary browser page continues to work. A later indexed record would be a separate observation, not an automatic consequence of the fix.

If the controlled follow-up had not reproduced the 403, the right outcome would be different: keep the access rule unchanged while investigating the failed resource, JavaScript exceptions, timing and request path. The diagnostic result should determine the intervention. A site-wide server-rendering rebuild would be premature while the cause is unresolved.

Trace the failing step before changing architecture

A missing render can arise at several points: a required script fails, a resource is inaccessible, content arrives too late, the page requires a user action, or client code replaces useful content with an error state. Google’s troubleshooting tools can show resources, DOM and JavaScript output, but those outputs still need interpretation. Its guidance also cautions that client-side analytics may not fully represent Googlebot or its rendering service (Google: Fix Search-related JavaScript problems).

Match the remedy to the observed failure

If the page uses lazy loading, check what triggers the content to load. Google says Search does not interact with a page as a user would; relevant content should become available when it is visible in the viewport rather than requiring a click or scroll (Google: Fix lazy-loaded content). A developer who scrolls through a page before inspecting it may otherwise produce a browser result that the Google test does not reproduce.

A successful page status is not proof that useful content arrived. Google describes soft-404 cases where a page can return 200 while showing little or no main content, including when a required JavaScript file is missing. If a live render is blank or nearly blank, inspect both the returned status and rendered content, then identify which critical resource failed (Google: Troubleshoot Search crawling errors).

The likely remedy should match the observed failure. A blocked public API suggests checking that endpoint’s access and response. A JavaScript exception suggests examining the code path and its inputs. A delayed request suggests investigating timing and whether the content can be delivered reliably without a user action. If the browser and Google test both lack the content, a Google-specific explanation becomes less likely: the deployed page, data or client application may be at fault.

When rendering architecture is the issue

Server-side rendering or prerendering can be sensible, particularly when the page must expose content to consumers that do not run JavaScript. It is not an automatic consequence of a static warning. Rendering approaches have trade-offs: server rendering can send useful HTML earlier, but generating pages on the server can increase response time; hydration can also add substantial client-side work. Some sites use different approaches for different pages (web.dev: Rendering on the web).

In the roofing example, changing an evidenced endpoint access rule is narrower than converting the whole site to server rendering. That may be the better choice if the endpoint is intended to serve public page content and the fix addresses an observed failure. If the endpoint cannot be made reliably available, or the business needs the content to work for a wider range of consumers, rendering that page’s key content earlier may be worth evaluating. The choice depends on the failure and operational needs, not a universal SEO rule.

A site-wide rebuild based only on the static scan may leave a blocked API untouched, solve no Google rendering problem if the live result was already complete, or add server and hydration complexity without addressing the dependency. If a rendering change is justified, test the same URL and sentinels after release. A successful build or CMS publish receipt proves neither what the public URL returns nor what the Google test renders.

A contrasting case: when the warning is only a scope gap

Keep the same hypothetical roofing page but change the evidence. Its response HTML contains only the app shell. The clean browser DOM and screenshot show the full page. Google’s live rendered HTML contains the exact suburb sentence and expected crawlable links. The indexed record’s last crawl is after the release, and the indexed information shows the useful content.

Here, the static scan is still right about the response it fetched. But there is no demonstrated Google rendering defect. Rebuilding the page merely to silence that static warning would turn a tool’s scope limitation into an engineering project. If the page is not indexed or does not appear in search, that is a separate question; this evidence does not diagnose canonical selection, discovery, eligibility, content value or ranking.

The opposite result also needs care. If a repeated live test lacks the sentinel but all observed resources succeed, do not label the problem a WAF failure without more evidence. Inspect JavaScript exceptions, timing and actual DOM changes. If a new live test contains the text, the original failure may have been intermittent or the original scan may have reached a different route or cached version. If the indexed crawl predates the deployment, do not attribute the older record to the current release.

A diagnosis should have a disproof condition. For the API/WAF hypothesis, a repeat Google render that consistently contains the content disproves a current, reproducible failure. So would evidence that the alleged endpoint failure did not occur in the relevant test context. These conditions are not inconveniences to explain away; they are reasons to revise the diagnosis.

Reusable decision worksheet

Use this worksheet after recording the URL, test times, response status, sentinel and link destination. “Best current reading” is provisional, not a final explanation. Stop conditions are part of the method: they prevent a team from defending its first theory after contrary evidence appears.

Evidence patternBest current readingNext actionRevise or stop when…
Response lacks text; browser and Google live render contain itStatic-scan scope gap; no Google rendering failure demonstratedRecord the distinction; investigate another search issue only if one existsA repeated live render or newer indexed record contradicts this pattern
Response lacks text; browser contains it; Google live render does notDifferential rendering is plausible; cause unconfirmedCompare failed resources, exceptions, timing, endpoint responses and relevant logsA repeat live render contains the text, or the proposed cause lacks supporting evidence
Response and browser both lack textPage, data or publication problem is more likely than a Google-specific failureCheck the deployed URL, data source and client errorsThe intended content appears consistently in a fresh run
Google live render contains text; indexed record is older or lacks itCurrent test and stored crawl are different observationsCompare release time with the indexed last-crawl dateA post-release indexed crawl still lacks the expected content
Text appears in source but disappears after scripts runClient code may be replacing or removing useful contentInspect hydration state, route data and final rendered HTMLThe final rendered output consistently preserves the intended content
Google live render contains text, but the page is not indexedRendering is not an established blockerInvestigate index status and other possible issues separatelyNew evidence identifies a fetch or rendering failure

The table is not an algorithm that identifies a root cause automatically. Its value is in narrowing what to inspect next and making the current interpretation challengeable. If the evidence is incomplete, say so. “Google’s live test misses the sentence; cause unknown” is a better engineering handoff than “Google can’t render JavaScript”.

Close the task at the right boundary

For a rendering ticket, define a delivery check that can pass or fail: the exact URL returns the intended public page; the browser DOM contains the sentinel; and Google’s live rendered HTML contains the sentinel and expected links on repeat tests under recorded conditions. Keep screenshots, rendered HTML and relevant resource evidence with the check. This verifies the named observations; it does not prove that Google has indexed the page.

Then keep the indexed record and later search outcomes separate. Search Console’s live test is a current troubleshooting fetch, not a promise about a future crawl, index decision or ranking. Google also says that an “on Google” verdict does not guarantee that a page will appear in search results (Google: Inspect and troubleshoot a single page). Do not put a ranking claim into the acceptance criteria for a rendering fix.

For agencies, make the recommendation auditable: state what the scan observed, what the browser and Google test observed, the likely failure point, the narrowest proposed fix and the condition that would disprove the diagnosis. The actionable outcome in the hypothetical Geelong case is conditional: investigate the endpoint failure, change access only after the public-route problem is evidenced, then repeat the same three-view test and compare its date with the indexed record. If the live render already contains the page’s important content, do not rebuild its rendering architecture solely to satisfy a static-tool warning. A three-view test establishes what named tools received at particular times; it cannot establish the whole indexing pipeline or guarantee rankings.