The JavaScript SEO basics for a small business come down to one question: can Google see your content, links and page signals after your scripts run? Google renders JavaScript and also uses the rendered HTML to index pages. Trouble starts when something important never reaches that rendered HTML. Search Console's URL Inspection tool shows you what Google sees.
We checked every Google page cited in this guide on December 4, 2026. Several were updated between December 2025 and December 2026, so where Google shows a last-updated date, we give it in the sources list. Search Console menus change too, and your screen may not match every label below.
What JavaScript SEO means for a small business website
Most small business websites run some JavaScript. It opens the menu on a phone, loads the booking widget, rotates the reviews and filters the product list. None of that is a problem in itself.
The useful question is narrower. Is your site using JavaScript, or depending on it? Our reading of Google's documentation: a site that uses JavaScript sends its real text and links in the HTML and lets scripts add movement on top. A site that depends on it sends a near-empty page and builds the content, the links, and sometimes the title and canonical tag inside the browser after the page arrives. Both can be indexed. The second simply has more places where something can go missing between your server and Google's index.
That is what JavaScript SEO for small business really covers. Not code for its own sake. It is about making sure the pages that bring you customers, such as your services, your locations and your contact page, reach Google intact.
Even Google admits this takes care: its guide to generative AI features in Search says SEO on a site built with JavaScript frameworks tends to be more complex. That is a fair warning, not a reason to rebuild anything. You don't need to write code to act on this guide, only to know what to look for, what to ask whoever built your site, and how to check the result yourself. For the foundations, see our technical SEO checklist for small businesses.
How Google processes JavaScript: crawl, render, index
Google's JavaScript SEO basics page (last updated March 4, 2026) splits the job into three parts: "Google processes JavaScript web apps in three main phases:" crawling, rendering and indexing. Here is each one, in the order a URL meets them.
Crawling starts with permission. Before Googlebot reads anything, it checks whether your robots.txt rules allow the URL. If they block it, the trip ends there. If the fetch goes ahead, Googlebot reads the response, meaning the initial HTML your server sends, and picks up URLs from the href attribute of HTML links for its crawl queue.
Rendering is where many guides go wrong. It is tempting to think only script-heavy pages get rendered. Google's documentation says otherwise: "All pages with a 200 HTTP status code are sent to the rendering queue, no matter whether JavaScript is present on the page." The same section makes one exception: pages whose robots meta tag or header tells Google to keep them out of the index. Error pages are different too. For a non-200 status code, rendering might be skipped, and a noindex tag in the original code can have the same effect, as the problem list below explains.
How long is the wait? There is a range, not a number: "The page may stay on this queue for a few seconds, but it can take longer than that." When resources allow, a headless browser renders the page and runs the scripts. That browser is kept current, according to the same page. Our reading: modern code is not a problem on its own.
Indexing then works from what rendering produced. In Google's words, "Google also uses the rendered HTML to index the page." Our reading: the indexing sentence says also, so we don't describe the rendered HTML as Google's only input for indexing.
Google's documentation
How Google Processes a JavaScript Page
Five steps one URL goes through on its way into Google's index. Every step is quoted from Google's own JavaScript basics page.
Phase 1
Crawling
Phase 2
Rendering
Phase 3
Indexing
Google: "Google processes JavaScript web apps in three main phases:" crawling, rendering and indexing.
Crawling
Googlebot checks whether crawling is allowed
A URL comes off the crawl queue and Googlebot requests it. Before it reads anything, it checks your robots.txt rules.
Google's words
"When Googlebot fetches a URL from the crawling queue by making an HTTP request, it first checks if you allow crawling."
Crawling
The server's response is read for links
At this point Google is reading the initial HTML, the code your server sends before any script changes the page.
Google's words
"Googlebot then parses the response for other URLs in the href attribute of HTML links and adds the URLs to the crawl queue."
Rendering
Pages with a 200 status join the render queue
This queue is not reserved for script-heavy sites. A page goes in whether it uses JavaScript or not, unless its robots meta tag or header tells Google to keep it out of the index.
Google's words
"All pages with a 200 HTTP status code are sent to the rendering queue, no matter whether JavaScript is present on the page."
Where rendering can stop
A non-200 status code
"If the HTTP status code is non-200 (for example, on error pages with 404 status code), rendering might be skipped."
noindex in the original code
"When Google encounters the noindex tag, it may skip rendering and JavaScript execution"
Blocked files or pages
"Google Search won't render JavaScript from blocked files or on blocked pages."
Rendering
A headless browser runs your scripts
The wait has no fixed length. The page cited here gives no timing figure beyond the one quoted below.
Google's words
"Once Google's resources allow, a headless Chromium renders the page and executes the JavaScript."
"The page may stay on this queue for a few seconds, but it can take longer than that."
Indexing
The rendered HTML is used to index the page
Our reading: the indexing sentence says "also", so we don't describe the rendered HTML as Google's only input for indexing.
Google's words
"Google also uses the rendered HTML to index the page."
The check that matters
Not in the rendered HTML? Then it can't be indexed
Google, in its guidance on web components: "If the content isn't visible in the rendered HTML, Google won't be able to index it."
Our reading: look at the rendered HTML Google gets, not only at what your own browser shows you.
Source: Google Search Central, Understand JavaScript SEO Basics (developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics) • last updated 2026-03-04 UTC • checked December 4, 2026
Created by Arfadia • arfadia.com/blog
Two technical limits are worth knowing even if you never touch code. The first is size. Googlebot reads "the first 2MB of a supported file type" when crawling for Search, and up to 64MB of a PDF, per the Googlebot documentation (last updated February 3, 2026). The limit is measured on uncompressed data, and each CSS and JavaScript file counts separately under the same cap. Before anyone panics, a Search Central blog post from March 31, 2026 (updated October 29, 2026) says that for the vast majority of the web, "a 2MB HTML payload is massive" and the limit will never be reached. Its October update adds that the 2MB fetch limit includes the HTTP response headers.
The second is caching. Googlebot keeps copies of files aggressively to save requests, and WRS, the Web Rendering Service, may ignore your caching headers. Our reading: right after you change a script, Google may still be working from an older copy for a while. One more reason to retest after an update instead of assuming.
Does Google crawl JavaScript? What Googlebot does differently from a visitor
Yes. Google crawls pages that use JavaScript and renders them. Its guide to optimizing for generative AI features (last updated December 2, 2026) puts it plainly: "Google is able to process content within JavaScript as long as it isn't blocked."
Where it differs is in what Googlebot does not do. It loads your page, but it does not behave like a customer browsing it. Table 1 lists the documented differences.
Table 1. What Googlebot does differently from a visitor
| What Googlebot does | What Google's documentation says | Our reading: what it means for your pages | Source page |
|---|---|---|---|
| Renders with "an evergreen version of Chromium" | Search runs scripts in a browser that stays current, though a few things can still be optimized. | Modern scripts are not the issue by themselves. The limits below are. | JavaScript SEO basics (2026-03-04) |
| Does not interact (click, scroll) | Google Search does not interact with the page, so nothing is clicked or scrolled. | Text that loads only after a tap or a scroll may never load for Google. | Lazy-loading guidance (2025-12-10) |
| Declines permission requests | "Expect Googlebot to decline user permission requests." | Content behind a location or notification prompt should not depend on a yes. | Fix Search-related JavaScript problems (2025-12-18) |
| Clears local storage, session storage and cookies between page loads | Both kinds of browser storage, and HTTP cookies, are wiped from one page load to the next. | Main content should not need a saved preference or cookie to appear. | Fix Search-related JavaScript problems (2025-12-18) |
| Does not use WebSockets or WebRTC | Connection types such as WebSockets and WebRTC are not supported. | Content delivered over a live connection, such as some chat or live-update widgets, may be missing for Google. | Fix Search-related JavaScript problems (2025-12-18) |
| Skips JavaScript from blocked files | "Google Search won't render JavaScript from blocked files or on blocked pages." | Scripts that build your content must stay crawlable. | JavaScript SEO basics (2026-03-04) |
| May use cached (older) script files | Googlebot caches aggressively, and the rendering service may ignore caching headers. | After an update, Google may run an older copy of a script for a while. | JavaScript SEO basics (2026-03-04) |
One more difference catches owners off guard. According to Google's JavaScript troubleshooting page, analytics that runs in the browser may not give a full or accurate picture of Googlebot's activity on your site. Your visitor numbers are not a record of what Google fetched or rendered. URL Inspection comes closer.
8 JavaScript problems Google documents, and how each one shows up
When a JavaScript website is not indexed, or is indexed without its best content, Google's documentation points to a short list of patterns. These are the eight it describes, each with the symptom you are likely to notice. The symptoms are our reading; the causes come from Google's documentation. Where we cover a topic in depth elsewhere, the entry stays short and links out.
1. Main content only exists after scripts run, and never reaches the rendered HTML
How it shows up: the page looks complete in your browser, but the HTML tab of a live URL Inspection test is missing your headline, your service descriptions or your opening hours.
Some sites follow an app shell model, where "the initial HTML does not contain the actual content". Rendering can fill that gap, which is why this is not automatically fatal. Real risk sits elsewhere on the same page, in its section on web components: "If the content isn't visible in the rendered HTML, Google won't be able to index it."
2. Menus and links without a real <a href>
How it shows up: pages a visitor can reach by clicking around never seem to get found, because the menu items are not links Google can follow.
Google's link guidance (last updated December 10, 2025) is specific: "Generally, Google can only crawl your link if it's an <a> HTML element" that carries an href. Links added by a script are fine, provided they use that same markup. Google generally does not crawl other formats as links. Google files its examples of those under a heading saying it may still try to parse them, which is a hope, not a plan.
Illustration, using example.com: <a href="https://example.com/services/">Services</a> is a link Google can follow. A <span> that loads the services page through a script, with no href, is not. Our guide to website and URL structure covers menus and addresses in more detail.
3. Separate pages that live behind # fragments
How it shows up: your services, about and contact sections share one address that changes only after a # sign, as in example.com/#/services (illustration).
Google asks site owners not to use fragments to load different content, because its crawler needs to find and extract your URLs. Its URL structure page (last updated October 21, 2026) adds that Search generally does not support URL fragments. For single-page apps, the documented fix is to "use the History API to implement routing", which gives each view a normal address such as example.com/services/.
4. Content that waits for a click or a scroll
How it shows up: reviews, extra services or the second half of a list appear only after a visitor taps a Load more button or scrolls down, and none of it shows in the rendered HTML.
Same reason as in Table 1: Search does not tap or scroll. Where content is split into chunks, the lazy-loading guidance says: "Give each chunk its own persistent, unique URL." It also tells owners not to lazy-load anything a visitor is likely to see the moment the page opens. Tabs, accordions and content hidden on small screens are a related topic, covered in our guide to mobile-first indexing.
5. A noindex tag in the original code
How it shows up: a page stays out of Google even though your developer says a script removes the noindex tag once the page loads.
Google clarified this at the end of 2025; the changelog entry for December 15, 2025 reads "Clarifying noindex and JavaScript". It adds that the behavior is not well defined and may change. Google says that on meeting a noindex tag it may skip rendering and script execution altogether, so the script meant to remove the tag may never run. Its instruction is direct: "If you do want the page indexed, don't use a noindex tag in the original page code."
6. A canonical tag that changes after rendering
How it shows up: Google picks a different canonical URL from the one you set, and the Page indexing report lists the page as Duplicate, Google chose different canonical than user.
"The best way to set the canonical URL is to use HTML", the JavaScript basics page says. A script can inject one, and Google will read it during rendering. Google's guidance is to keep any canonical set by script identical to the one in the original HTML, never pointing it to a different URL. Trouble starts when two versions disagree, since conflicting or duplicate canonical tags can produce results nobody planned. A changelog entry of December 17, 2025 explains why clarity matters: canonicalization happens "before and after rendering". For how canonical tags work in general, see our guide to canonical tags for small businesses.
7. Error pages that return 200, the soft 404
How it shows up: a removed product or a mistyped address shows a friendly not-found message, but the server still answers with status code 200. The Page indexing report calls this Soft 404.
For sites that route pages inside the browser, the JavaScript basics page offers two fixes. One is a JavaScript redirect to a URL where the server returns a 404 code. Or you can add a noindex tag with JavaScript. That second option does not contradict problem 5. There you wanted the page indexed. Here you want it gone. Our guide to 404 errors and soft 404s covers the rest.
8. Scripts or styles blocked in robots.txt
How it shows up: the screenshot in a live test looks unstyled or empty, while visitors see a normal page.
Blocked scripts are not rendered, as Table 1 shows. Google's introduction to robots.txt (last updated December 10, 2025) lets you block resources that don't matter, but asks you to leave them open if the page becomes harder for its crawler to understand without them. For the rules themselves, see our guide to XML sitemaps and robots.txt.
How to check what Google sees on your site: 8 steps
This is the check we would run first on any small business site that leans on JavaScript. It uses Search Console's URL Inspection tool, works one URL at a time and needs no code, only access to your site's Search Console property.
- List the pages that matter most. Your homepage, main service or product pages, location pages and contact page are enough to start. Google's Page indexing Help page warns: "Don't expect every URL on your site to be indexed." Begin with the URLs that earn you customers.
- Inspect the URL, and remember the first result is not a live test. Inspect one address from your list. The URL Inspection Help page labels that first result plainly: "This is not a live test."
- Check the status and compare the two canonical URLs. Note what Search Console reports about the page, then compare the canonical you declared with the one Google chose. When they differ, the Page indexing report uses the status Duplicate, Google chose different canonical than user.
- Run Test live URL. This tests the page as it is now. Know what it proves: "The live URL test only confirms if Google-InspectionTool can access your page for indexing."
- Open View tested page and search the HTML tab. The Help page on rendered source gives the path: "Click Test live URL > View tested page." Then: "The HTML tab shows the rendered HTML for the page." Pick one sentence from your main content and one important link, and search for both. A missing sentence points to problem 1; a link without an href points to problem 2. Google's troubleshooting page names one other official way to see a rendered page, the Rich Results Test, and the same Help page lists it for a page on any site. For your own property, URL Inspection stays the main tool.
- Look at the screenshot, page resources and JavaScript console messages. Screenshots of the rendered page come from the live test only. A blank or unstyled one can point to blocked files (problem 8). The troubleshooting page adds that the tool shows which resources loaded, the JavaScript console output and errors, and the rendered DOM. Forward any console errors to whoever maintains your site.
- Read the Page indexing report for patterns, not every URL. One inspection tells you about one page. The report shows whether a status repeats across a type of page, such as every location page. Table 2 below links the common statuses to the problems above, and our guide to reading Google Search Console explains the report in full.
- Fix, retest, then ask Google to index the URL. Run the live test again after the fix, and only then ask Google to index the URL. Search Console Help notes a daily limit on these requests and adds: "Submitting a request does not guarantee that the page will appear in the Google Index."
It is easy to miss the gap between the first result and the live test. Here it is side by side.
Search Console, URL Inspection
Indexed View vs Live Test in URL Inspection
Inspect one URL and you can get two different readings. Check which one is on your screen before you change anything.
View 1
The first result
What Search Console shows as soon as you inspect a URL.
What Google calls it
Google's Help page is plain about it: "This is not a live test."
Screenshot
None. "A screenshot of the rendered page is available only in a live test."
HTML
The crawled HTML is available through View crawled page. The Help page does not call it rendered HTML.
Use it for (our reading)
A first look at a URL, before you test or change anything.
View 2
The live test
What you get after you click Test live URL.
What Google calls it
"The live URL test only confirms if Google-InspectionTool can access your page for indexing."
Screenshot
Available. Google offers the screenshot of the rendered page in the live test only.
Rendered HTML
"Click Test live URL > View tested page."
"The HTML tab shows the rendered HTML for the page."
Use it for (our reading)
After you change a page, or when the first result does not match what visitors see.
Also in the tool
Google's JavaScript troubleshooting page says the URL Inspection Tool lets you see "loaded resources, JavaScript console output and exceptions, rendered DOM, and more information."
Daily limits
Search Console Help notes a daily limit on URL inspections and on indexing requests.
Indexing requests
"Submitting a request does not guarantee that the page will appear in the Google Index."
Neither view is a promise
Google: "There is no definitive test that can guarantee whether your page will be included in the Google index."
Our reading: a clean live test shows that Google can reach the page. It does not reserve a place in the index.
Sources: Google Search Console Help, URL Inspection tool (support.google.com/webmasters/answer/9012289) and View the rendered source for a page (support.google.com/webmasters/answer/11626894), neither page shows a last-updated date • Google Search Central, Fix Search-related JavaScript problems (developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript), last updated 2025-12-18 UTC • checked December 4, 2026
Created by Arfadia • arfadia.com/blog
After a few inspections, the Page indexing report helps you spot which problem is spreading. Table 2 pairs each common status with where JavaScript may come in.
Table 2. Page indexing statuses and where JavaScript may be involved
| Status in the Page indexing report | What Google's Help page says | Our reading: when JavaScript may be involved |
|---|---|---|
| Crawled - currently not indexed | Listed as a status in the report. The same page reminds owners that not every URL will be indexed. | If an important page sits here, check whether its main content reaches the rendered HTML (problem 1). |
| Discovered - currently not indexed | Listed as a status in the report. | Check that links to the page are real HTML links with an href (problem 2). |
| Soft 404 | Listed as a status in the report. The JavaScript basics page gives two ways to avoid soft 404s with client-side routing. | Likely on sites that route pages in the browser and show error messages with a 200 code (problem 7). |
| URL marked 'noindex' | Listed as a status in the report. Google's page on generative AI controls says noindex keeps a page out of Search results, AI features included. | Look for a noindex tag in the original code that a script was supposed to remove (problem 5). |
| URL blocked by robots.txt | Listed as a status in the report. | If the page itself is blocked, Google won't render it. Check the script and style files too (problem 8). |
| Duplicate, Google chose different canonical than user | Listed as a status in the report. | Compare the canonical in the initial HTML with the one in the rendered HTML (problem 6). |
Possible explanations, not confirmed causes. Status names are written as they appear in Google's Page indexing Help page, with straight quotes.
Do you need server-side rendering?
Not as a requirement. Google's technical requirements for Search (last updated December 18, 2025) has three items: Googlebot isn't blocked, the page returns HTTP 200, and the page has indexable content. Server-side rendering is not one of them. Meeting all three is no promise either; in Google's words, "indexing isn't guaranteed."
Google still speaks well of it. The JavaScript basics page calls server-side or pre-rendering "still a great idea" because it speeds a site up for people and crawlers alike, and notes in the same passage that "not all bots can run JavaScript."
Client-side rendering SEO is where the terms blur, so Table 3 lines up the definitions. They come from web.dev's rendering guide, Google's site for web developers (published February 6, 2019, last updated January 5, 2026), next to what Search documentation says.
Table 3. Rendering approaches, defined
| Approach | Definition (web.dev) | What Google Search documentation says |
|---|---|---|
| Server-side rendering | "Rendering an app on the server to send HTML, rather than JavaScript, to the client." | One of three solutions Google recommends instead of dynamic rendering. |
| Static rendering | "Static rendering happens at build time." | Also among the recommended solutions on Google's dynamic rendering page. |
| Client-side rendering | "Rendering an app in a browser, using JavaScript to modify the DOM." web.dev adds that it can work but often needs extra testing and overhead. | Our reading: workable for Search, with the limits in Table 1. The content still has to reach the rendered HTML. |
| Hydration | "Running client-side scripts to add application state and interactivity to server-rendered HTML." | The third recommended solution, next to server-side and static rendering. |
| Dynamic rendering | No definition quoted here. web.dev calls it "an option worth considering if your architecture depends heavily on client-side JavaScript". | "Dynamic rendering is a workaround and not a recommended solution, because it creates additional complexities and resource requirements." It is not treated as cloaking when the content served is similar. |
Notice the conflict in the last row. Google's two sites disagree on dynamic rendering, and the dynamic rendering page at Search Central (last updated December 10, 2025) is the one written for Google Search. We follow it. If someone proposes dynamic rendering for your site, ask why the three recommended options don't fit.
JavaScript and Google's AI features
For Google's own generative AI features in Search, such as AI Overviews and AI Mode, the JavaScript rules are the Search rules. To be eligible, a page has to be "indexed and eligible to be shown in Google Search with a snippet", meet the technical requirements above, and sit on a site that is included in these features through a Search Console setting.
That setting is a Search Console control. Google's Help page states: "As of August 31, 2026, we've rolled out this control to all websites worldwide." Include is the default control, and a property follows its parent property's setting unless it has been set on its own. Google says the control is not a ranking or inclusion signal for the rest of Search.
No special file or markup is needed. Google's guide says there is no need to build new machine-readable or AI text files, extra markup or Markdown versions to appear in Search, since Search does not use them. On markup, it is direct: "Structured data isn't required for generative AI search, and there's no special schema.org markup you need to add." The noindex problem carries over too, since Google's page on generative AI controls (last updated November 24, 2026) says noindex keeps a page out of Search results, AI features included. And as the guide puts it, "Indexing and serving aren't guaranteed."
What about an AI assistant outside Google? Here the documentation runs out. None of the Google pages cited here describe how AI systems outside Google fetch or render JavaScript. The only relevant line is general: not every bot runs JavaScript. Our reading: if it matters that an AI assistant can read a page, keeping the main content in the initial HTML is the safer bet.
When JavaScript is not a problem
Plenty of JavaScript does no harm at all.
Our reading of Google's documentation: scripts that add behavior on top of content already in the HTML are low-risk. Think of a menu animation, a photo gallery, an embedded map or a chat button. A simple test applies. If the text and links those scripts decorate are present without them, the scripts are decoration, and Google's limits barely touch them.
Several common uses are backed directly. The JavaScript basics page says: "You can use JavaScript to set or change the meta description as well as the <title> element." Structured data added by a script counts as well, as long as it is in the DOM when Google renders the page, per its page on generating structured data with JavaScript. Script-inserted links work when they use normal link markup, as problem 2 explains.
An old worry has also been retired. In a changelog entry of March 4, 2026 titled "Removed outdated information about JavaScript and accessibility", Google stated that "using JavaScript to load content is not 'making it harder for Google Search'."
JavaScript SEO claims, checked against Google
These claims turn up in forums, sales pitches and AI answers. Each is set against Google's documentation.
Table 4. Common claims and what Google documents
| Claim | What Google's documentation says | Source page |
|---|---|---|
| Google can't read JavaScript | Google can process content inside JavaScript unless it is blocked. | Guide to optimizing for generative AI features (2026-12-02) |
| Every site needs server-side rendering | Not one of the three technical requirements for Search. Server-side or pre-rendering is recommended for speed and because not all bots run JavaScript, not required. | Technical requirements (2025-12-18); JavaScript SEO basics (2026-03-04) |
| Only JavaScript pages wait in a render queue | Pages with a 200 status code go into the rendering queue, scripts or not, unless a robots meta tag or header tells Google to keep them out of the index. | JavaScript SEO basics (2026-03-04) |
| Rendering always takes days | A page may wait a few seconds, and it can take longer. No other figure is given. | JavaScript SEO basics (2026-03-04) |
| Removing noindex with JavaScript works | "When Google encounters the noindex tag, it may skip rendering and JavaScript execution" | JavaScript SEO basics (2026-03-04); changelog entry of December 15, 2025 |
| Menus built with scripts are always invisible to Google | Links inserted with JavaScript are crawlable when they use standard <a> markup with an href. | Link guidance (2025-12-10) |
| Blocking scripts in robots.txt keeps pages out of Google | robots.txt "is not a mechanism for keeping a web page out of Google." Blocked scripts also stop rendering. | Introduction to robots.txt (2025-12-10); JavaScript SEO basics (2026-03-04) |
| AI features need special files or schema for JavaScript sites | No new machine-readable or AI text files are needed, and no structured data or special schema.org markup is required for generative AI search. | Guide to optimizing for generative AI features (2026-12-02) |
Our reading: most of these were half true at some point. They just don't match what Google documents today.
When this advice does not apply
This guide is written for small business sites with a manageable number of pages. Some situations need more than it can give.
- Very large sites. Sites with many thousands of URLs can run into crawling questions this guide does not cover.
- Content behind a login. Googlebot clears cookies between page loads, so pages that need a signed-in session are a different problem altogether.
- Other search engines and AI systems. Everything here describes Google. Other crawlers may handle scripts differently, and Google itself points out that not every bot runs JavaScript.
- A rebuild. Moving to server-side rendering, static rendering or hydration is a developer's decision that depends on how your site is built.
And no fix here comes with a promise. Google says so on its page about hiring SEO help: "No one can guarantee a #1 ranking on Google."
Next step. If the check turned up problems in the basics, start with our technical SEO checklist for small businesses. For the reports you used in the eight steps, read how to read Google Search Console. And if the trouble was your menu or your addresses, our guide to website and URL structure goes deeper.
Frequently Asked Questions
Is JavaScript SEO friendly?
It can be. Google renders JavaScript and also uses the rendered HTML to index pages, and its guide to generative AI features says Google can process JavaScript content as long as it isn't blocked. Trouble comes from specific patterns: content missing from the rendered HTML, menu links without an href, a noindex tag in the original code. Check your key pages with URL Inspection.
Does Google crawl JavaScript?
Yes. Googlebot crawls the page, queues pages with a 200 status code for rendering unless a robots meta tag or header tells Google to keep them out of the index, renders it in a headless browser and also uses the rendered HTML for indexing. It does not click, scroll or accept permission prompts, and it clears cookies and browser storage between page loads, so content that depends on those may not be seen.
Is Google a web crawler?
Google runs crawlers, and the one that crawls for Google Search is Googlebot. It checks whether crawling is allowed, fetches the page, reads the links in the HTML and queues pages for rendering. Search Console also uses a crawler called Google-InspectionTool for live tests in URL Inspection.
How long does Google take to render JavaScript?
There is no fixed time. Google's JavaScript basics page says a page may stay in the rendering queue for a few seconds, and that it can take longer. The documentation cited in this guide gives no other figure, so treat any precise number you see elsewhere with caution.
Do I need server-side rendering for SEO?
Not as a requirement. Google's technical requirements for Search are that Googlebot isn't blocked, the page returns HTTP 200 and the content is indexable. Server-side or pre-rendering is still recommended because it makes sites faster for users and crawlers, and Google notes that not every bot can run JavaScript.
Why is my JavaScript website not indexed?
Documented causes include main content that never reaches the rendered HTML, menus without real links, pages behind # fragments, a noindex tag in the original code, error pages that return 200, and blocked script files. Inspect an affected URL, run a live test and search the HTML tab for your main text. Indexing is never guaranteed, even when everything checks out.
Can Google follow menus and links built with JavaScript?
Yes, if the links use normal HTML link markup with an href attribute. Google's link guidance says links inserted with JavaScript are crawlable on that condition. Elements that only run a script when clicked, with no href, are generally not something Google's crawlers pick up as links.
Can AI assistants read content loaded with JavaScript?
For Google's own generative AI features, the Search rules apply: pages need to be indexed and eligible to appear in Search with a snippet. None of the Google pages cited in this guide describe how AI assistants outside Google fetch or render JavaScript, and it notes that not every bot can run JavaScript. Our reading: content in the initial HTML is the safer choice.
Is JavaScript still a problem for Google in 2026?
Less than its reputation suggests. In March 2026 Google removed outdated information about JavaScript and accessibility from its documentation, and its current pages say Google can process JavaScript content that isn't blocked. The problems it documents are specific and checkable, from blocked files to links without an href, rather than JavaScript as such.
How can I see my page the way Google sees it?
Use URL Inspection in Search Console. Inspect the URL, click Test live URL, then View tested page. In the HTML tab you will find the rendered HTML, and the live test adds a screenshot. Search that HTML for a sentence from your main content and for an important link. If either is missing, Google may not be getting the full page.
Sources & References:
- Google Search Central, Understand JavaScript SEO Basics (last updated 2026-03-04): three phases; robots check before fetch; links from href; render queue for 200 pages unless robots meta tag or header says not to index; non-200 and noindex may skip rendering; content must be visible in the rendered HTML (web components section); queue time; headless and evergreen browser; rendered HTML used for indexing; app shell; blocked files; server-side or pre-rendering; title and meta description; canonical; fragments and History API; soft 404 strategies; caching. Checked December 4, 2026. developers.google.com
- Google Search Central, Fix Search-related JavaScript problems (last updated 2025-12-18): testing with URL Inspection; resources and console output; permission requests; storage and cookies; WebSockets and WebRTC; client-side analytics. Checked December 4, 2026. developers.google.com
- Google Search Central, link guidance (last updated 2025-12-10): crawlable links use an a element with href; links inserted with JavaScript; other formats. Checked December 4, 2026. developers.google.com
- Google Search Central, lazy-loading guidance (last updated 2025-12-10): Google Search does not interact with the page; unique URL per chunk; no lazy-loading for content visible on load. Checked December 4, 2026. developers.google.com
- Google Search Central, dynamic rendering as a workaround (last updated 2025-12-10): workaround, not a recommended solution; recommended alternatives; cloaking note. Checked December 4, 2026. developers.google.com
- Google Search Central, introduction to robots.txt (last updated 2025-12-10): not a mechanism for keeping a page out of Google; when not to block resources. Checked December 4, 2026. developers.google.com
- Google Search Central, technical requirements (last updated 2025-12-18): three requirements; indexing isn't guaranteed. Checked December 4, 2026. developers.google.com
- Google Search Central, generating structured data with JavaScript (last updated 2025-12-10): structured data available in the DOM at render time. Checked December 4, 2026. developers.google.com
- Google Search Central, URL structure (last updated 2026-10-21): fragments generally not supported. Checked December 4, 2026. developers.google.com
- Google Search Central, Googlebot (last updated 2026-02-03): 2MB per supported file type, 64MB per PDF; limit applied to uncompressed data; CSS and JavaScript fetched separately. Checked December 4, 2026. developers.google.com
- Google Search Central blog, Inside Googlebot: demystifying crawling, fetching, and the bytes we process (published March 31, 2026, updated October 29, 2026): 2MB in context for the vast majority of the web; the 2MB fetch limit includes HTTP response headers. Checked December 4, 2026. developers.google.com
- Google Search Central, documentation updates (entries of December 15, 17 and 18, 2025, and March 4, 2026): noindex and JavaScript, behavior not well defined and may change; canonicalization before and after rendering; non-200 status codes; outdated accessibility information removed. Checked December 4, 2026. developers.google.com
- Google Search Central, guide to optimizing for generative AI features in Search (last updated 2026-12-02): JavaScript processing; complexity note; eligibility; no new machine-readable or AI text files needed; no structured data required; no guarantee. Checked December 4, 2026. developers.google.com
- Search Console Help, Search generative AI control (answer 16908024, no update date shown): rollout as of August 31, 2026; Include as the default control; inheritance from a parent property; not a ranking or inclusion signal. Checked December 4, 2026. support.google.com
- Google Search Central, generative AI controls (last updated 2026-11-24): noindex includes Search generative AI features. Checked December 4, 2026. developers.google.com
- Search Console Help, URL Inspection tool (answer 9012289, no update date shown): first result is not a live test; crawled HTML via View crawled page; what the live test confirms; screenshot in live test only; no definitive test; daily limits; requests not guaranteed. Checked December 4, 2026. support.google.com
- Search Console Help, view the rendered source of a page (answer 11626894, no update date shown): Test live URL, View tested page, HTML tab. Checked December 4, 2026. support.google.com
- Search Console Help, Page indexing report (answer 7440203, no update date shown): status names; not every URL is indexed. Checked December 4, 2026. support.google.com
- web.dev, Rendering on the Web (published 2019-02-06, last updated 2026-01-05): definitions of server-side, static and client-side rendering and hydration; view on dynamic rendering. Checked December 4, 2026. web.dev
- Google Search Central, Do you need an SEO? (last updated 2026-06-05): no one can guarantee a #1 ranking. Checked December 4, 2026. developers.google.com