BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
Web Development

Web rendering: How browsers and Google build pages

Rendering turns HTML, CSS and JavaScript into the page you see. Learn how browsers and Google render pages, and which rendering approach is safest for SEO.

Monthly searches · web rendering
70
Keyword research data
web rendering
Web rendering: How browsers and Google build pages
Click the image to view it full size

A page arrives as code: HTML, CSS and JavaScript. Rendering is the work of turning that code into the page on screen, and for your site it happens twice: in each visitor's browser, and in Google's own copy of Chrome before a page is indexed. For SEO, that raises one practical question: is your content already in the HTML your server sends, or does it only appear after JavaScript runs? The answer decides how fast visitors see it and how reliably search engines do.

What a browser does to render a page

Browsers follow roughly the same steps for every page MDN:

  1. Parse the HTML. The browser builds the Document Object Model (DOM), a tree of every element. A preload scanner looks ahead and starts downloading CSS, scripts, fonts and images early.
  2. Parse the CSS. Style rules become a second tree, the CSSOM.
  3. Combine them. The DOM and CSSOM join into a render tree of everything visible. Elements with display: none are left out.
  4. Lay out. The browser works out the size and position of every box.
  5. Paint and composite. Boxes are drawn as pixels, sometimes in separate layers, and combined into the final screen.

JavaScript can interrupt this. A <script> without async or defer pauses HTML parsing until it has downloaded and run. Getting the first content on screen quickly is the job of the critical rendering path.

Where the HTML gets built

The bigger choice is where the page's HTML is put together. web.dev describes four common approaches web.dev:

Approach Where the HTML is built Good at Watch out for
Static rendering Once, at build time, one file per URL Fast responses, little JavaScript Awkward for huge or constantly changing URL sets
Server-side rendering (SSR) On the server, for each request Content in the first response Server work can slow the first byte
Client-side rendering (CSR) In the browser, with JavaScript App-like interactions More JavaScript, slower to show content
SSR with hydration Server sends HTML, then scripts make it interactive Content shows early The page's work is partly done twice, which can hurt responsiveness

Hydration means running scripts in the browser to attach interactivity to HTML the server already built. Pre-rendering, a close cousin of static rendering, runs a client-side app at build time and saves the result as HTML; see prerender.

For search, the difference is simple. With static rendering and SSR, the main content is in the first HTML response. With pure CSR, that response can be a nearly empty shell, and the content exists only after JavaScript runs.

How Google renders your pages

Google handles JavaScript pages in three phases Google Search Central:

  1. Crawl. Googlebot checks robots.txt, fetches the URL and collects links from href attributes in the HTML.
  2. Render. Pages that return a 200 status go into a render queue, unless a robots meta tag or header says not to index them. A page may wait there a few seconds or longer. Then a headless, evergreen version of Chromium loads it and runs the JavaScript.
  3. Index. Google reads the rendered HTML for more links and uses it to index the page.

Google calls the renderer the Web Rendering Service. A few of its habits trip up real sites:

  • It doesn't keep local storage, session storage or cookies between page loads, so content can't depend on them.
  • It declines permission requests, such as camera or location access.
  • Pages with a non-200 status, like a 404, may not be rendered at all.
  • Googlebot fetches only the first 2MB of each HTML, CSS or JavaScript file (64MB for PDFs), and each file referenced in the page counts separately Google Search Central.

Google can render JavaScript, but it still recommends server-side rendering or pre-rendering: pages get faster for users and crawlers, and not every bot runs JavaScript.

Dynamic rendering is a workaround, not a fix

Dynamic rendering means detecting bots and sending them a pre-rendered page while users get the JavaScript version. Google now calls it a workaround and not a recommended solution, because it adds complexity and cost. Its advice is to use server-side rendering, static rendering or hydration instead.

How to check what Google sees

  • Compare source and DOM. Open the page source, then the rendered DOM in your browser's developer tools. Anything that's only in the DOM depends on JavaScript.
  • Use URL Inspection in Search Console. It shows how Google rendered the page, the resources it loaded and any JavaScript console messages.
  • Send real status codes. Single-page apps often answer 200 for pages that don't exist. Redirect to a URL that returns a 404, or add a noindex robots tag with JavaScript, so error pages don't get indexed as soft 404s.
  • Use real links and URLs. Put navigation in <a href="..."> links, and route with the History API rather than # fragments, which Google can't reliably follow.
  • Keep files lean. Big bundles slow rendering for people and can run into the 2MB per-file limit.

FAQ

Does Google see content loaded by JavaScript?

Usually, once the page is rendered. Rendering can be delayed, and it fails when scripts are blocked or throw errors. Put your main content and links in the initial HTML when you can.

Is client-side rendering bad for SEO?

Not by itself; Google can render it. The risks are slower pages, content that shows up in Google later, and other crawlers that don't run JavaScript at all.

Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.