JavaScript SEO Guide: Rendering, Indexing, and Internal Links

JavaScript SEO means making sure Google can find, load and understand pages that use JavaScript to show their text and links. Google can run JavaScript, but it’s an extra step that can fail or take a while. This guide explains how that step works, what usually goes wrong, and how to check what Google sees.

Does putting links in the initial HTML bring more traffic?

Maybe. Google can find links in the initial HTML before running JavaScript, but the evidence here doesn’t show that moving your links there brings more search traffic.

Low confidence. Thin or indirect evidence so far. Based on 6 sources: 3 controlled tests, 1 observational study, 1 case study, 1 official doc.

What to do

Check whether Google can see your important links. If you change how they load, track search traffic to the pages that show them and the pages they point to.

Results at a glance3 of 5 test results include a figure. Each test measured a different site and metric, so compare the direction more than the size.
  1. Uproer · 2023+33% year over year, alongside other link work
  2. SearchPilot · 2017More than +6% organic sessions
  3. SearchPilot · 2021No detectable effect

Gain Loss No clear change

On this page
  1. What to do
  2. How does Google crawl, render and index JavaScript?
  3. What’s the difference between the initial HTML and the rendered page?
  4. Common JavaScript SEO problems
  5. Turn a click-only control into a real link
  6. Server-side rendering vs. client-side rendering
  7. How to test what Google sees on a JavaScript page
  8. Does putting links in the initial HTML bring more traffic?
  9. The evidence
  10. Related tactics

How does Google crawl, render and index JavaScript?

Google handles JavaScript pages in three steps: crawlcrawlWhen a search engine’s bot visits a page and reads its content and links., render and index.

  1. Crawl. GooglebotGooglebotThe program Google uses to visit and read web pages., Google’s crawler, requests the URL and downloads the HTML your server sends. It notes any links in that HTML. It checks robots.txtrobots.txtA plain text file at the root of your site that tells search engine bots which pages they may crawl. first and won’t fetch pages or files that robots.txt blocks.
  2. Render. The page waits in a queue until Google’s renderer is free. The renderer is a version of Chrome with no screen. It runs your JavaScript the way a visitor’s browser would and produces the finished page. Google says the wait can be a few seconds, but it can take longer.
  3. Index. Google reads the rendered page, including text and links your scripts added, and decides whether to store it in its index, the database search results come from. Links found during rendering go back into the crawl queue.

Bottom line

Google sees what your JavaScript adds only after the render step. Anything that needs a click, a scroll or a blocked file to appear may never reach the index.

What’s the difference between the initial HTML and the rendered page?

The initial HTML is what your server sends before any JavaScript runs. The rendered page is what you get after the scripts finish. On a typical WordPress blog, the two look almost the same. On a single-page app built with React, Vue or Angular, the initial HTML can be nearly empty.

Here’s a simple example. A store’s /jackets/ page might arrive as the code below: a title, an empty box and a script. After the script runs, the box fills with product names, prices and a link to /jackets/rain/. A visitor sees the full page either way. Before rendering, Google sees only the empty box.

To compare the two yourself, open the page in Chrome. Right-click and choose View Page Source to see the initial HTML. Then right-click and choose Inspect to see the rendered page. Search each one for a phrase or link you care about.

<html>
  <head><title>Jackets</title></head>
  <body>
    <div id="app"></div>
    <script src="/app.js"></script>
  </body>
</html>

Bottom line

When a phrase shows up in Inspect but not in View Page Source, it depends on JavaScript. Make sure Google’s rendered version has it too.

Common JavaScript SEO problems

Most problems come down to one thing: a visitor sees something Google never gets to. Check these five first.

  1. Links that aren’t real links. Google follows <a> tags that have an href. It doesn’t click buttons or divs with a click handler, so pages reached only that way can go undiscovered.
  2. Content that loads only after a click or scroll. Google doesn’t click tabs or Load more buttons, and it doesn’t scroll like a person. Text fetched only after one of those actions may never be seen.
  3. Blocked JavaScript or CSS files. If robots.txt blocks the scripts or styles a page needs, such as with Disallow: /assets/, Google can’t render the page properly.
  4. Meta tags set only by JavaScript. If a script adds or changes the title, meta description, canonical tagcanonical tagA line of code that tells Google which address is the main version of a page when the same content loads at several addresses. or robots meta tag, Google sees the change only after rendering. Watch for one trap in particular. If the initial HTML says noindexnoindexAn instruction on a page that asks search engines not to show it in search results. The page still loads for anyone with the link., Google may skip rendering, so a script that removes the noindex never runs.
  5. Soft 404s in single-page apps. Many single-page apps return a normal “200 OK” status for every URL, even for a product that no longer exists, and just show “Not found” on screen. Google may report these as soft 404s. Have the server return a real 404 status, or add a noindex robots meta tag to error views.

Bottom line

Start with links. Check that each of your most important links is an <a> tag with a real URL in its href.

If a menu item or product card sends people to a new page when they click a styled div or button, replace it with a real <a href> link like the one below. You can keep the same look, and JavaScript can still add effects on top. Paste the destination URL into a new tab to make sure it opens on its own.

Where it’s practical, put important links in the initial HTML. Google can pick them up before rendering, so they don’t wait in the render queue. If a link has to come from JavaScript, make sure it appears when the page loads, without anyone opening a filter, hovering or scrolling.

<a href="/jackets/rain/">Shop rain jackets</a>

Bottom line

If a link only works when someone clicks it, Google can’t follow it. Give every link you care about a real URL in its href.

Server-side rendering vs. client-side rendering

Client-side rendering means the visitor’s browser builds the page by running JavaScript. The server sends a nearly empty shell, like the /jackets/ example above. Server-side rendering means your server runs the JavaScript first and sends finished HTML, so the text and links are there from the start.

Think of it like ordering furniture. Client-side rendering ships a flat-pack kit the browser has to assemble. Server-side rendering delivers it already built. Static generation, a third option, builds each page once ahead of time and serves it as plain HTML. Frameworks like Next.js for React and Nuxt for Vue support both.

Is React bad for SEO? No. Google can render client-side pages, and React sites can rank. Server-side rendering removes the wait for Google’s render step. It also helps other crawlers, since Google notes that not every crawler can run JavaScript.

Bottom line

On an existing site, test what Google sees before you plan a rebuild. If the rendered page already has your text and links, rendering may not be your problem.

How to test what Google sees on a JavaScript page

Start with URL Inspection in Google Search ConsoleSearch ConsoleGoogle’s free dashboard for site owners. It shows which searches bring people to your site and flags problems Google finds.. Paste the page URL, click Test live URL, then click View tested page. The HTML tab shows the rendered HTML. The Screenshot tab shows how the page looked to Google. More info lists page resources that failed to load, such as blocked scripts.

Check the basics first: the status, the main text, the title, the canonical tag and whether the page can be indexedindexWhen a search engine stores a page so it can show up in results. A page can be crawled and still not be indexed.. Then test one link. A clothing store might want /jackets/ to lead shoppers to /jackets/rain/. Search the tested HTML for the rain-jacket URL. It should appear inside an href attribute. A URL tucked inside a script or a data file is not a link.

If you don’t have Search Console access for the site, use Google’s Rich Resultsrich resultsSearch results with extra details, such as star ratings, prices, or event dates, usually made possible by structured data. Test. Paste any public URL, run the test, and click View tested page to see the same kind of rendered HTML and screenshot.

If the link is missing, check whether a script or data request failed, or whether the link needs a click to appear. Then inspect the destination page to confirm it loads and can be indexed.

Bottom line

Treat View tested page as your source of truth. It shows what Google rendered, which can differ from what your browser shows.

The evidence is unclear. Google can find links in the initial HTML before it runs JavaScript, and it can also find links your scripts add during rendering. One split test that moved links into server-rendered HTML found no clear change in traffic to the pages showing the links. It didn’t measure the pages those links point to.

So if you change how links load, measure both sides. Note the date, and keep a list of the pages showing the links and the pages they point to. Track how quickly Google finds new destination pages, and compare search clicks for both groups in Search Console.

Bottom line

Track whether Google finds the destination pages, and measure clicks to both groups separately.

The evidence

One test found no clear gain on the pages displaying the links. Other tests showed Google can discover JavaScript-injected links but measured discovery instead of traffic. A positive traffic case also changed the product content available to Google.

  • SearchPilot · Controlled test · 2021

    SEO A/B test: Server-side rendering internal links

    SearchPilot found no detectable effect on source-page organic sessions at its 95% threshold.

    Single site. Links also moved from a hidden tab to an exposed location, and traffic to pages receiving the links was not measured.

  • Google Search Central · Official guidance · Last updated 2026

    Understand the JavaScript SEO basics

    Googlebot extracts links from the initial response and can parse them again after rendering JavaScript. The render queue can introduce a wait.

    Discovery mechanics can motivate the tactic but do not quantify an organic traffic effect.

  • Vercel and MERJ · Observational study · 2024

    How Google handles JavaScript throughout the indexing process

    Google discovered and crawled links in both server-rendered and client-rendered pages. Authors reported an immediate discovery advantage for server-rendered links because client-rendered links may await rendering.

    Tests and observations primarily on one host. It measured discovery mechanics, not search clicks or sessions. URL-like payload strings could also be discovered, so delivery choices are not a simple binary.

  • SearchPilot · Controlled test · 2017

    Early Results from Split Testing JavaScript for SEO

    The publisher reported a statistically significant increase of over 6%, or over 3,000 estimated extra monthly sessions.

    This was a bundled CSS change exposing product content and links and not necessarily moving links from rendered DOM into initial HTML. Historical test from 2017.

  • GIndexa Research · Controlled test · 2026

    CSR vs. SSR: A Search Indexing Experiment

    The study reported that both delivery patterns could be discovered and rendered. The server-rendered pages produced fewer ambiguous observations.

    Changes main content rendering while holding internal link placement fixed. Sample counts and quantitative outcomes are not published. Does not measure organic search visits.

  • Uproer · Case study · 2023

    How an Overlooked SEO Tactic Delivered 33% Traffic Growth [SaaS Case Study]

    Uproer reported 33% year-over-year organic traffic growth after prioritizing internal links and described server-side rendering as one part of the work.

    No holdout and no estimate isolated to SSR. The 59 crawled pages came from Screaming Frog with rendering disabled, not measured Googlebot capabilities. The traffic change is for the overall engagement.

Every source above was checked against the original by a second reviewer. How we rate the evidence