JavaScript SEO is about making sure Google can find your content, links and page information, even when JavaScript builds part of the page. Google can run JavaScript, but that does not guarantee every element will be discovered or indexed. Pages that depend on scripts, clicks or delayed requests can expose less information than visitors see. The practical solution is to compare the original HTML with the version Google renders, identify what is missing and correct the specific problem rather than rebuilding the entire website.
How Google processes JavaScript pages
A browser normally receives HTML from a website’s server. HTML describes the page’s content, headings, links and other elements. JavaScript can then change that document by adding text, loading information or creating interactive features.
Google’s process involves three related activities:
- Crawling: Googlebot discovers a URL and fetches its initial HTML and accessible resources.
- Rendering: Google’s Web Rendering Service runs supported JavaScript to construct the page after scripts execute.
- Indexing: Google evaluates the available content and signals to decide whether and how to include the page in its index.

According to Google’s JavaScript SEO documentation, Google Search runs JavaScript with an evergreen version of Chromium, meaning a regularly updated version of the browser engine.
However, Google says Googlebot queues pages for both crawling and rendering, and it is not always obvious which queue a page is waiting in. Rendering requires resources, so it may not happen immediately after the HTML is fetched.
Our guide to rendering as a cause of missing pages covers the wider checks when a URL fails to appear in search.
What about other crawlers?
Not every system uses Google’s rendering process.
Many AI crawlers retrieve HTML and may not execute JavaScript. Some search engine crawlers also provide less JavaScript support than Googlebot.
OpenAI, for example, documents separate crawler user agents for different purposes. Their existence does not mean every crawler renders client-side content like a browser.
For broader discoverability, placing important information in the initial HTML is the safer approach. This principle also matters when making pages accessible to AI tools.
Server-side, static and client-side rendering
Rendering means turning page code and data into the content a browser or crawler can examine.
The location and timing of that work influence how much information arrives in the first HTML response.
Static generation creates HTML in advance, usually when a website is built or content is published. Visitors receive a ready-made document.
Server-side rendering (SSR) generates HTML on the server when a page is requested. The server sends the content rather than requiring the browser to build everything.
Client-side rendering (CSR) sends an HTML shell that JavaScript fills in after loading. This is common in certain single-page applications.
Hydration is when JavaScript adds interactive behaviour to HTML already produced by the server.
Rendering comparison
| Approach | What Google receives first | SEO risk | Typical use |
|---|---|---|---|
| Static generation | Prebuilt HTML containing the page content | Low when generated output is complete | Marketing pages, articles, service pages |
| Server-side rendering | HTML generated by the server for the request | Low when properly implemented | Content-driven sites with frequently changing data |
| Client-side rendering | Often an HTML shell with limited visible content | Higher dependency on successful rendering | Interactive dashboards and applications |
| Hybrid (server render then hydrate) | Content-rich HTML followed by JavaScript enhancements | Low when initial content is complete | Modern React and framework-based websites |
| Dynamic rendering | Different output for crawlers and users | Maintenance and consistency risks; Google no longer recommends it as a workaround | Legacy implementations |
For most business content pages, however, server-side or static output is the safer default because headings, paragraphs and links can be examined before scripts execute.
The correct choice depends on what the page does. An account dashboard may benefit from client-side interaction, while a public service description rarely needs to depend entirely on it.
Our technical SEO reviews assess the actual delivered output before recommending framework or template changes.
Five JavaScript patterns that hide content or links
JavaScript is not inherently an SEO defect. Problems occur when implementation decisions prevent crawlers from discovering URLs, accessing important content or interpreting page-level instructions.
Links built as buttons or click handlers
A developer may make a card or button navigate to another page using JavaScript. Visitors click it successfully, so nobody notices a problem.
But Google primarily discovers links through HTML anchor elements containing an href attribute.
A button with an onclick handler might navigate in a browser without providing a crawlable link.

The difference is straightforward:
<!-- Preferred: a crawlable link -->
<a href="/services/website-design/">
Website design
</a>
<!-- Risky: navigation depends on JavaScript -->
<button onclick="openService()">
Website design
</button>
In rendered HTML, inspect the service navigation and confirm that destinations are actual anchors with meaningful href values.
Google’s guidance on crawlable links explains why this matters.
Our article about links Google can follow covers how internal navigation supports service-page discovery.
Hypothetical example: A firm’s new website lists services in a JavaScript tab component, with each tab implemented as a button. Google indexes the main page but finds no links to the individual service pages through those controls. Changing the tabs to real links with href values would fix discovery without changing the design.
Content loaded only after a click or scroll
A common interface loads text when visitors open an accordion, select a tab or scroll near a section.
The problem is not the existence of these controls. It is whether important content exists without an interaction Google may never perform.
For example, a service page might initially contain only a heading. Its full description appears after a visitor presses a button.
Check the rendered HTML for a distinctive sentence from each important section. If the sentence is absent, investigate whether the content requires an event, permission or additional request.
The safest fix is usually to provide meaningful content in the HTML and use JavaScript to control how it is displayed.
Titles, descriptions or canonicals set only by JavaScript
A page’s title, meta description and canonical element communicate important information about that URL.
Some applications generate or replace these elements through JavaScript after the first HTML response. Google can process JavaScript-injected metadata, but depending on rendering adds avoidable complexity.
A more serious problem occurs when the initial HTML and rendered HTML disagree.
For instance, an application might serve the same generic title for every service page, then replace it with a unique title after loading. A canonical element could similarly point to the wrong URL before or after rendering.
Inspect both versions for the element, meta description and canonical link.
If they differ, establish which version is correct and where it is generated.
For public content pages, ask the developer to include accurate metadata in the initial server response. Avoid conflicting canonical elements and unnecessary JavaScript changes to critical SEO signals.
Fragment URLs used for separate pages
A fragment is the portion of a URL following the # character. Fragments are useful for jumping to sections within a document, but they are not a reliable way to represent separate indexable pages.
Consider a website that uses:
/services/#design
/services/#development
The server typically receives the same /services/ request for both. The fragment itself is not sent in the HTTP request.
If JavaScript uses those fragments to create entirely different page content, crawlers may not recognise the intended pages as separate URLs.
Check whether your service categories have distinct, crawlable addresses that work when opened directly.
If each service needs its own search presence, use proper paths such as /services/design/ and /services/development/.
Blocked JavaScript or API files
Even correctly written JavaScript cannot produce content if required resources are unavailable to Google’s renderer.
Scripts, stylesheets or API endpoints might be blocked by robots.txt rules, security restrictions, authentication or server errors.
Inspect the rendered HTML and screenshot. If a content block is empty, examine resource-loading errors and confirm that required public endpoints are accessible without signing in.
A useful developer investigation includes the resource URL, its response status, whether access is restricted and the content that should have appeared.
Do not remove security protections indiscriminately. Public content should have an appropriate public delivery method rather than requiring privileged access.
Test what Google sees
The most useful JavaScript SEO test compares two versions of the same URL: the raw HTML delivered by the server and the rendered HTML produced after Google processes the page.
Choose an important public URL, preferably a service page with headings, text, navigation links and metadata.
Step 1: view source
Open the page in a desktop browser.
Right-click and choose View Page Source, or use the browser’s view-source: URL feature.
This reveals the HTML delivered initially. It does not display the current page after JavaScript modifications.
Search for a distinctive sentence in the page’s main content. Also look for important internal links, the title element and canonical URL.
If you find only an empty root element or loading message, the site may depend heavily on client-side rendering.

Step 2: URL Inspection live test
Open Google Search Console and choose a verified property containing your website.
Enter the exact URL into the URL Inspection tool.
Review the available information about the indexed URL, then select Test Live URL to request a fresh test.
When the test is available, open View Tested Page and examine the HTML and screenshot. Inspect the available resource and diagnostic information as well.
Search the HTML for your selected text and links. Remember that the live test shows a test result, not a guarantee that Google has indexed that version.
Step 3: compare the two
Now compare the initial source with Google’s rendered output.
| Element | Raw HTML check | Rendered HTML check |
|---|---|---|
| Main heading | Is the expected heading present? | Is the heading still correct? |
| Service description | Does the text arrive initially? | Does the full text appear? |
| Internal links | Are there anchors with href? | Are destination links present? |
| Page title | Is the correct title included? | Has JavaScript changed it? |
| Canonical | Does it reference the intended URL? | Is there one correct canonical? |
| Important images | Are image references present? | Are images loading as expected? |
Record what is missing rather than simply marking the page as failed.
For example, a complete raw document with missing internal links is a different issue from a blank page caused by an API error.
Status codes and error pages in JavaScript apps
A URL’s HTTP status code tells crawlers how the server handled its request.
A successful page normally returns 200 OK. A missing page should generally return 404 Not Found or 410 Gone, depending on the situation.
Some single-page applications serve the same HTML shell with a 200 response for every URL, including paths that do not exist.
JavaScript then displays a custom error message.
A crawler may receive a successful status code but encounter content saying the page is missing. Google may classify this as a soft 404.
The preferable solution is for the server to return the appropriate status code when a URL does not exist.
Where genuine server-side status handling is impractical, Google’s JavaScript SEO guidance discusses using a noindex directive for client-side error views.
A real 404 response remains the cleaner default.
Ask your developer to test both valid and deliberately invalid URLs using an HTTP response inspection tool.
What this means for WordPress, headless and builder sites
Your website’s platform affects where rendering happens, but the platform name alone cannot tell you whether content is crawlable.
Standard WordPress websites
Traditional WordPress themes generally generate content-rich HTML on the server using PHP, so important text usually arrives before browser JavaScript executes.
WordPress can still have SEO problems, including poor internal links, incorrect canonicals and thin content. Those should not automatically be described as JavaScript rendering failures.
Headless WordPress websites
A headless setup uses WordPress to manage content while a separate application displays it.
A client-rendered frontend that loads every article or service description through browser requests introduces additional dependencies.
For business content, consider server-side generation, static generation or a suitable hybrid approach.
Our guide to headless WordPress for business sites explains the architectural trade-offs.
Page builders, sliders and interactive widgets
Page builders do not automatically create JavaScript SEO problems. Many Elementor sections generate normal HTML that crawlers can inspect without user interaction.
Risk increases when third-party sliders, tabs, AJAX widgets or custom scripts inject important text and links later.
See our discussion of builder markup problems for related Elementor SEO considerations.
Questions to ask before selecting a framework
Before approving React or another JavaScript-heavy frontend for a marketing website, ask:
- Will public pages deliver their main content in the initial HTML?
- Can crawlers discover service links without performing clicks?
- Are titles, canonicals and status codes generated correctly?
- Can developers test rendered output before a release?
- Does the business actually need the complexity of a separate frontend?
The problem is selecting an architecture based on interface features without considering content delivery, maintenance and testing.
JavaScript SEO fixes to ask your developer for
A useful technical SEO request names the affected template, the missing element and the evidence needed to confirm a fix.
Start with these priorities:
- Provide server-side or static HTML for indexable pages. Important headings, descriptions and internal links should not require fragile client-side requests.
- Use real links. Internal navigation should use
elements with usablehrefdestinations rather than relying only on click handlers. - Include correct metadata initially. Set titles, descriptions and canonical elements in the delivered HTML wherever practical.
- Return meaningful status codes. Missing pages should not silently return successful responses.
- Verify resources and rendered output. Test actual public URLs using Search Console, not only a local development environment.
A focused developer brief might read:
> On the services template, the individual service links are missing from Google’s rendered HTML. Replace the JavaScript-only navigation with anchor elements containing the correct href values. The work is complete when all service URLs appear in the rendered HTML during a Search Console live test and open independently.
For another template, the correct fix might involve an API, the server response or metadata generation.
Always retest after deployment. A change that appears correct in browser DevTools may behave differently when accessed by a crawler.
Common questions
Can Google read JavaScript content?
Yes. Google renders JavaScript with a recent Chromium browser and can evaluate content added after the initial HTML response. However, rendering can be delayed, and some patterns still hide content or links. Important information may be missed when it depends on user interactions, inaccessible resources or broken scripts. Testing rendered output is more reliable than assuming JavaScript support guarantees discoverability.
Do AI crawlers render JavaScript?
Many AI crawlers fetch HTML and may not run JavaScript like a full browser. Their capabilities and purposes vary, so behaviour should not be assumed to match Google’s rendering service. Content in the initial HTML is safer for every system because it reduces dependence on script execution. Accessible HTML also makes it easier for different tools to retrieve important page information.
Is client-side rendering bad for SEO?
Not always. Google can render many client-side applications successfully. However, client-side rendering adds risk and dependency on JavaScript execution, resource availability and rendering schedules. Server-side or static rendering is the safer default for content pages, especially service descriptions and articles. The right decision depends on the page’s purpose, implementation and how consistently its content can be retrieved.
How do I see what Google sees on my page?
Use URL Inspection in Google Search Console and run a live test. Open the rendered HTML and screenshot to inspect important headings, content and internal links. Compare those results with the page source, which shows the initial server response. This comparison helps identify content introduced by JavaScript and reveals whether the rendered version is missing anything important.
Is my WordPress site affected by JavaScript SEO?
Standard WordPress themes usually output HTML on the server, so their main content often does not depend on client-side rendering. Risk comes from headless frontends, certain builder components, sliders, tabs and custom JavaScript features. A WordPress website can still have ordinary SEO problems. Inspect a representative page before assuming that JavaScript is responsible for missing content or indexing issues.
Check before the next release
A rendering check belongs in website release testing, particularly when developers update frameworks, replace page components or change how content is loaded.
Choose representative URLs from your important templates and compare the initial HTML with the rendered output.
Confirm that headings, service descriptions, internal links, titles and canonical elements remain available. Also verify that missing URLs return suitable HTTP status codes.
If your site relies on JavaScript and you are not sure what Google sees, our technical SEO review compares raw and rendered output on your key templates and we fix what is missing. Send your URL for a free audit.



