Skip to content
A/MR

SEO · · 3 min read

Google Renders JavaScript in a Separate Queue, Only Follows Links in href, and Still Recommends Server-Side Rendering

Google crawls, renders and indexes JavaScript pages in three phases. Pages can wait in a render queue, links need an href, and Google still recommends server-side rendering.

Diagram: Google handles JavaScript pages in three phases, crawl, render and index; it finds links in href attributes and still recommends server-side rendering

hi, i’m amr. many landing pages and web apps now build their content with javascript. google can handle that, but its javascript SEO guide explains the extra step involved, and a few patterns that make content harder for google to find.

what google says, in its own words

  • google processes javascript pages in three phases: crawling, rendering and indexing, and “queues pages for both crawling and rendering”
  • a page “may stay on this queue for a few seconds, but it can take longer than that”
  • pages are queued for rendering “unless a robots meta tag or header tells Google not to index the page”. javascript in files blocked by robots.txt isn’t rendered
  • googlebot finds links in the href attribute of HTML links
  • server-side or pre-rendering is still recommended, because it helps users and crawlers and “not all bots can run JavaScript”
  • use the history API for routing. fragment URLs like #/page are a bad practice because googlebot can’t reliably resolve them
  • in single-page apps, handle missing pages with a javascript redirect to a URL that returns a real 404, or add a noindex robots meta tag
  • a canonical injected by javascript should match the one in the original HTML
  • googlebot caches aggressively, so the guide suggests content fingerprinting in file names, such as main.2bb85551.js

the page doesn’t give a typical render delay beyond “a few seconds”, and doesn’t set a limit on how many pages get rendered.

my reading, not google’s wording: buttons and click handlers that load content without a real link are the pattern to check first, because google says it finds links in href.

what to check this week

  • use the URL inspection tool in search console to see the rendered HTML of a key landing page
  • check that menus and internal links are real <a href> links, not click handlers
  • check that robots.txt doesn’t block the javascript files your pages need
  • if your site is a single-page app, test a URL that doesn’t exist and confirm it returns a real 404 or a noindex
  • make sure the canonical in the original HTML matches the one javascript sets
  • my post on status codes and soft 404s covers how google treats error pages

where this stops applying

google itself notes that not all bots can run javascript, so what works for googlebot may not work for every crawler. i haven’t audited any site for this post.


start scaling — if your site is built with javascript and important pages aren’t showing up in google, a rendering check is a good place to start. let’s connect.

Sources: Google Search Central, “Understand the JavaScript SEO basics” (developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics). Figures are published product documentation, not verified results from Amr’s own client accounts.

Leave a reply