DELTAWEB
All posts
Technical SEO

Rendering Test: How Google Sees Your Translated Web Page

Use URL Inspection, the Rich Results Test, view-source and curl to check how text, lang, hreflang and canonical reach Google on every language version.

Rendering Test: How Google Sees Your Translated Web Page
12 minReading time
Arif KuruAuthor

A rendering test is the process of comparing the raw HTML a server sends with the final DOM the browser builds after running JavaScript, in order to confirm what a search engine actually sees on a page. On a multilingual site the test comes down to a single question: does your German page reach Google with German text, the correct lang value, the correct hreflang set and a self-referencing canonical, or do some of these appear only in the visitor’s browser? This article expands the rendering stage of our guide to crawling, indexing and rendering on multilingual sites, and works through, in question-and-answer form, what each test method shows and what you should check on every language version.

How Does Raw HTML Differ from the Rendered DOM?

Raw HTML is the text the server returns in its first response; it is what you see when you choose “view page source” in a browser. The rendered DOM is the final state after stylesheets, JavaScript bundles and API responses have been applied on top of that HTML; the Elements panel in developer tools shows it. The larger the gap between the two, the more steps a search engine depends on to understand the page correctly.

After crawling, Google generally places pages in a rendering queue and runs JavaScript to produce the final DOM. The details, timing and limits of this process are described in the Google Search Central documentation and are updated over time; check the official source for the current state. The practical consequence is this: a signal present in raw HTML depends on fewer conditions than a signal that depends on rendering. Putting language signals in the first response keeps the essential information intact even if something goes wrong during rendering.

Why the Gap Grows on Multilingual Sites

On a single-language site, the difference between raw HTML and the rendered DOM is usually limited to interactive components. On multilingual sites, setups in which translated text, the language switcher, hreflang tags and sometimes the canonical are generated on the client are common. If a framework’s localisation package loads text in the browser, the raw HTML may contain only key names or text in the default language. The real purpose of a rendering test on a multilingual site is therefore to verify that each language version appears in its own language, with its own signals.

What Does Each Test Method Show?

A rendering test is not done with a single tool; each method shows a different slice of the process. The short list below summarises four common methods, what they show and what they leave out. Tool interfaces and the information they provide can change, so check the current usage of each in its official documentation.

  • URL Inspection live test (Search Console): offers a view close to how Google fetches and renders the page at that moment; you can review the rendered HTML, a screenshot and resources that could not be loaded. It works only for verified properties.
  • Rich Results Test: tests a public URL or a code snippet, lets you see the rendered HTML and checks structured data. It does not require property ownership, so you can also look at pages outside your own verified setup.
  • View-source versus rendered DOM: you place the browser’s page source next to the DOM in developer tools. It is fast and works anywhere, but it shows your browser’s rendering result, not Google’s.
  • curl with different Accept-Language headers: shows at raw HTML level whether the server responds differently based on language preference. It runs no JavaScript and is the plainest way to see redirects, status codes and the Vary header.
A tidy office setup with a desktop computer and several monitors in a bright workspace
Photo: Tranmautritam / Pexels

URL Inspection Live Test

The live test and the indexed version are not the same thing. The URL Inspection tool shows both information about Google’s indexed record and a live test run on request; the live test reflects the page as it is today but does not guarantee that indexing will produce exactly the same result. On a multilingual site you need to test each language version separately; a clean result for the Turkish page tells you nothing about the French one. In the rendered HTML, look for the translated text, the lang value on the html element, and the hreflang and canonical lines inside head.

Rich Results Test

This tool is designed primarily to validate structured data, but it can also be used to inspect rendered HTML. It suits checking whether the name, description and currency in product or organisation schema match the translated text on each language version. The tool may offer options such as a choice of crawler type; confirm the available options and limits on the official help page.

View-Source versus Rendered DOM

This is the quickest first check. If you cannot find a German sentence in the page source but you can see it in the DOM, the text is being added on the client. That alone is not an error; it only shows that the text depends on rendering completing successfully. Make the same comparison for hreflang and the canonical: if these tags are missing from raw HTML and added by JavaScript, you need to confirm the rendered result separately with Google’s tools.

curl with Different Accept-Language

Requesting the same URL with different language headers and comparing the responses reveals whether the server performs language detection. For example, if curl -sI -H "Accept-Language: de-DE" https://example.com/tr/ and the same request without the header return a different status code or different content, the page changes based on the requester’s preference. Google’s documentation explains that its crawler generally sends requests without a language preference, so the header-less response is the raw output closest to what Google will see. See the current documentation for the details.

What Should You Verify on Each Language Version?

Whatever tool you use, it helps to look for the same check items on every language version in both raw and rendered HTML. The table below brings together the item, where to look and the most common mistake.

Check itemWhere to lookCommon mistake
Translated main textHeadings and paragraphs in bodyDefault language in raw HTML, translation only after rendering
lang attribute<html lang="...">The same value on every language, usually en or tr
hreflang setlink rel="alternate" lines in headMissing return links, tags injected only by JavaScript
Canonicallink rel="canonical"Every language canonicalising to the default language
Title and meta descriptiontitle, meta name="description"Left empty or in the default language when the translation file is late
Structured dataJSON-LD blocksSchema left untranslated on the language version

If every item in the table is correct in raw HTML, the rendering test is mostly confirmation. If an item is correct only after rendering, that item needs regular testing with Google’s tools. To audit the hreflang set as a whole, keep the pre-launch hreflang implementation checklist at hand; the rendering test shows whether the tags appear on the page, while the checklist shows whether the set is built correctly.

Why the lang Attribute Gets Missed

In most templates the html element is written once and nobody connects it to the language variable. The result is a French page served with lang="en". Documentation is cautious about how much weight Google gives this attribute in language detection; even so, screen readers and browser translation prompts use the value, so it needs to be correct in any case. Because it is usually a single template error, the fix is usually a single line as well.

How Do Translation Widgets Appear in Tests?

Widgets that add a JavaScript snippet to the page and translate text in the browser produce a distinctive picture in a rendering test. Raw HTML contains only the source language; the rendered DOM shows the translation only if the response from the widget’s server has arrived. Many widgets remember the language choice through a cookie or local storage; if we assume Google does not carry that state during rendering, the test tool may still show the source language. Whether this kind of translation gets indexed is a separate subject, covered in detail in our article on whether JavaScript-translated content is indexed.

From a rendering-test point of view, what you need to do is answer three questions for every language address that uses a widget: does this language have its own URL? Is the text in that URL’s rendered HTML actually in that language? Do lang, hreflang and the canonical point to this language? If even one of the three answers is no, that language version may not exist as a separate page as far as a search engine is concerned.

How Do Blocked Resources Break Rendering?

Rendering completes correctly only if the crawler can reach the JavaScript, CSS and API endpoints the page needs. If robots.txt blocks a folder such as /static/, /locales/ or /api/, Google may be unable to fetch these resources and the rendered HTML stays incomplete. On multilingual sites the most frequent example is translation files loaded as JSON from a separate folder that has been excluded from crawling.

In the URL Inspection live test you can review the list of resources that could not be loaded. Classify each one: is it a file that affects the page’s content or language signals, or one that does not touch content, such as analytics or a chat tool? Only blocks in the first group break the rendering result. Firewall or bot protection rules can have a similar effect; some CDN rules return a different response to unknown user agents. When you change rules at that layer, our guide to managing hreflang and redirects at the CDN layer can also help.

Close-up of HTML code shown line by line on a computer screen
Photo: Markus Spiske / Pexels

Timeouts and Slow API Responses

Even when a resource is not blocked, a translation API that responds very slowly can affect the rendering result. Google’s documentation does not give a fixed figure for how long rendering waits, and the numbers that circulate on this point are not official. The safe approach is not to tie language text and language signals to an external API call; if you must, monitor that endpoint’s response time from different regions.

How Do You Catch Language-Dependent Responses?

Some sites serve different content at the same URL depending on the visitor’s language preference or location. It may look convenient for users, but it creates ambiguity for crawlers: Google mostly crawls from a particular location without stating a language preference, so it may never see the other variants. We covered the details of this risk in our article on Googlebot crawling from the US and the risks of location-based content; for a rendering test, what matters is making this behaviour measurable.

A simple method: request each language URL three times, once without a header, once with Accept-Language: en-US and once with the target language’s header. The status code, Location header, html lang value and canonical line of all three responses should be identical. If they differ, the server or edge layer is detecting language. If that detection produces a redirect, Google may lock onto a single variant; if it changes the content, what you see in a test tool may differ from what your users see.

How Should You Read the Result?

The output of a rendering test is rarely a single pass or fail; it is usually a set of observations. The questions below help turn those observations into decisions.

Is a Correct Screenshot Enough?

It is not. A screenshot shows the visual state of the page, but it does not show the tags in head, text inside hidden elements or a wrong canonical. Base your decision on the text of the rendered HTML, and use the screenshot only to see whether the layout is broken.

Text in the DOM but Not in the Index?

If the live test shows the text but the page never appears in searches in that language, the problem may lie not in rendering but in the indexing decision. Content perceived as a copy of another language version, weak internal linking or an inconsistency in the hreflang set can lead to this outcome. In that case, treat the rendering test as complete and continue the diagnosis on the indexing side.

Results That Change Between Tests

If the same URL renders fully in one test and partially in another, one of its resources may be failing intermittently or timing out. Compare the list of unloaded resources between the two tests and check the status codes of requests for that resource in your server logs.

How Do You Build a Regular Test Routine?

A rendering test is not something to run once and forget; a template change, a framework update or a newly added language can change the result. The sequence below is kept simple enough for a small team to apply in every release cycle.

  1. Choose one representative URL from each template type (home page, category, product, blog post) and from each language.
  2. Fetch the raw HTML of these URLs with curl and check the six items from the table with a text search.
  3. Request the same URLs with different Accept-Language headers and compare the responses.
  4. For items missing from raw HTML, run the URL Inspection live test or the Rich Results Test.
  5. Classify unloaded resources by their effect on content and add only those that affect content to the fix list.
  6. Record the results in a table by language and template, and compare them with the same URLs at the next release.

Automating the raw HTML check is the most efficient step of the routine, because running Google’s tools by hand for every URL does not scale. A simple script can fetch the representative URLs and compare the lang, canonical and hreflang lines with the expected values; you then use Google’s tools only for pages the script flags or pages you know depend on rendering.

Can you answer this for every language version you publish: if JavaScript never ran, could this page still state which language it is in, which sibling pages it has and what its own canonical address is?

FAQ

Frequently Asked Questions

  • Do I need to run a rendering test separately for each language version?

    Yes, test at least one representative URL per language. Even when language versions share a template, translation files, redirects and language signals can arrive through different paths. A clean result for the Turkish page tells you nothing reliable about the German or French page.

  • If the URL Inspection live test is clean, will the page be indexed?

    Not necessarily. The live test shows that Google can fetch and render the page as it is now; the indexing decision also depends on content quality, duplicate signals and signal consistency. Check the Search Console help documentation for the current behaviour.

  • Does adding hreflang tags with JavaScript cause problems?

    If rendering completes, the tags can be seen, but the signal becomes dependent on rendering. hreflang delivered in raw HTML, an HTTP header or the sitemap depends on fewer conditions. If you inject it with JavaScript, confirm the rendered HTML with Google’s tools regularly.

  • How does the Rich Results Test differ from URL Inspection?

    URL Inspection works only for verified properties and also reports on the indexed record. The Rich Results Test can check any public URL or code snippet and focuses on structured data. Both let you see the rendered HTML; check the official documentation for the current scope of each tool.

  • Does blocking translation files in robots.txt affect rendering?

    It can. If text loads in the browser from a separate JSON or JavaScript file and that file’s folder is blocked, Google may not be able to fetch the translation. The list of resources that could not be loaded in the URL Inspection live test is a practical way to see this.

  • Why test with an Accept-Language header?

    It shows whether the server responds differently based on language preference. If the same URL returns different content or a redirect with and without the header, Google is likely to see only one variant. It is a simple comparison you can run with curl in seconds.

  • If the screenshot looks right, is rendering fine?

    Not on its own. A screenshot shows only the visual layout; it does not show the lang, canonical and hreflang lines in head or text inside hidden elements. Make the decision by reading the text of the rendered HTML.

  • How often should I repeat a rendering test?

    Repeating it after every significant release, such as a template change, a framework update or a new language, is a good starting point. If you automate the raw HTML check with a script, you can run it on every release. Google’s tools are then used for the pages the script flags.

Related Articles

No comments yet

Leave a Comment