All posts
AI search

AI Crawler JavaScript: How to Check Product Pages

A product page can look complete in a browser while important details are missing from its original HTML.

STSearchFIT team23 minutes read

An AI crawler JavaScript issue can leave product details out of reach when a page shows them only after scripts run. Some search systems render JavaScript, but you should not assume every crawler does. Compare the page’s original HTML with its rendered version, then test Google separately and investigate any important facts that appear only after rendering.

This guide walks e-commerce teams through that check, from choosing pages and product facts to retesting after a fix. It focuses on what you can verify, not on guessing how every AI service works. For more context on e-commerce visibility in AI answers, see SearchFIT’s e-commerce guidance and guide to common AI recommendation pitfalls.

What an AI crawler JavaScript check can tell you

A product page might visibly show a price, stock status, colour options, specifications and returns information. But the first HTML response could contain only a product title, an app shell and a loading placeholder. If JavaScript fetches the details later, a crawler that does not run those scripts may not receive the same information a shopper sees.

That difference matters for facts people use to compare products: price, availability, variant names, materials, dimensions, compatibility, delivery terms and returns. It can also affect whether a system has usable evidence when it tries to answer a buyer’s question. A page containing the facts in HTML does not guarantee that it will be indexed, selected as a source or cited in an answer. It simply makes those facts available in that response for systems that read it.

Google renders JavaScript, but its process happens in stages. Google first fetches HTML and then queues eligible pages for rendering. Google says server-side rendering or pre-rendering can still help users and crawlers, including bots that do not run JavaScript. For merchants, Google recommends putting Product structured data in the initial HTML because JavaScript-generated markup can make shopping crawls less frequent and reliable for fast-changing details such as price and availability. Read Google’s JavaScript SEO guidance and its Product structured data guidance for the specifics.

AI crawler behaviour needs a careful date attached. Vercel and MERJ published a study on 17 December 2024 reporting that the OpenAI, Anthropic, Meta, ByteDance and Perplexity crawlers they tested did not render JavaScript on the pages in their sample. The study covered nextjs.org and two job-board sites, so it is evidence about those tests, not a promise about every crawler, page or later version. It also found that some crawlers fetched JavaScript files without executing them. Read the study and its limits.

Bot names do not tell you whether a bot renders JavaScript. OpenAI documents different bots for search, training and user-initiated fetches. Anthropic also documents separate bots for different purposes. Those documents explain roles and controls; they are not a universal JavaScript-rendering specification. For example, OpenAI’s crawler documentation distinguishes its search crawler from other bots.

The practical rule is simple: test the actual product pages that matter to your shop. Do not infer what a particular AI service can see from Google’s rendering, a bot’s name or a general claim about JavaScript.

What you need before you start

You do not need to crawl your entire catalogue to find out whether a rendering issue exists. Start with a small, deliberate sample and a way to record what you find.

Prepare:

  • A list of product URLs that represent your main page templates.
  • A list of important facts to check on each page.
  • Access to a browser and, if possible, your site’s server or CDN logs.
  • Access to Google Search Console if you want to inspect Google’s view.
  • A spreadsheet or shared document for recording results.
  • A developer contact who can help assess fixes if a gap appears.

Choose pages that cover more than one product pattern. For example, include a standard product, a product with variants, a sale item, an item with changing stock status, and a page with reviews or specifications loaded in tabs. If all your products use one template, choose examples with different data states. A product page that is in stock may behave differently from one that is out of stock or available for pre-order.

Write down the facts a shopper needs to make a decision. Depending on your catalogue, these may include:

  • Product name and a useful description.
  • Current price and currency.
  • Availability, including backorder or pre-order status.
  • Variant names, identifiers, prices and stock status.
  • Materials, dimensions, fit, compatibility or other key specifications.
  • Review information, where it is displayed.
  • Shipping, delivery and return terms.
  • Any limitations that materially affect the product’s use.

Do not treat this as a ranking prediction. The check answers a narrower question: are the facts present in the original response, in the rendered page, or in neither? It cannot confirm that a search engine or AI assistant has indexed a page or will cite it.

Create a simple checking sheet

Use one row per fact rather than one row per page. That makes it easier to spot patterns, such as every variant price being added by a script or only one theme missing stock information.

Page or templateFact checkedIn original HTML?In rendered page?Google test?Follow-up
Product ACurrent priceNoYesYesAsk development to review initial response
Product AAvailabilityNoYesYesCheck data source and rendering path
Product BVariant namesYesYesYesNo gap found in this check

Use clear labels such as Yes, No and Not checked. Add the date and the page URL. If the page changes often, record the variant or stock state you saw. That context helps someone repeat the check later.

Step 1: Choose representative product pages

Begin with a handful of URLs from different templates or product conditions. The goal is to find a meaningful pattern, not to produce a catalogue-wide audit on day one.

A useful sample might include:

  1. A standard product with a fixed price.
  2. A product with colour or size variants.
  3. A sale product with a current and previous price.
  4. A product with stock that changes regularly.
  5. A product whose specifications or reviews appear in tabs or accordions.
  6. A product using a different page template, such as a bundle or configurable item.

Choose pages with facts that matter to buyers and are likely to change. Price and availability deserve particular attention because stale information can mislead shoppers. If your store uses different rendering approaches across product lines, include one page from each approach.

Keep the sample small enough that a marketer can check it carefully. If you find a repeated issue in one template, you can expand the sample to learn how many pages may be affected. Avoid concluding that the entire catalogue has a problem based on a single unusual page.

Tip: Use the same product URL in every test. If a product has a selected variant, note which one. The default variant and a shopper-selected variant may produce different details.

Mistake to avoid: Do not check only the home page or a category page. Product details may use a separate template, API or rendering path.

Step 2: Define the facts you expect to find

Before opening developer tools, make a short checklist for each page. This prevents the investigation from becoming a vague search for whether the page is generally visible.

For example, on a running shoe product page, your list might include the product name, price, currency, available sizes, colour names, material and delivery or returns information. On a piece of electronics, it might include the model number, price, stock status, storage capacity, compatibility and warranty terms.

Use exact text where possible. If the page visibly says Available in navy and sand, search for that wording. Also record values that might be formatted differently in source, such as a price represented as 48.00, $48 or a structured data value. Look for both the value and its label. Seeing a number alone may not show what it refers to.

Separate visible content from structured data. Product details may appear in readable text, in JSON-LD or in both places. Note each location. Structured data can describe a product to systems that process it, but it does not replace checking the page’s visible content or prove that every crawler can use the data.

Tip: Include both stable and changing facts. A product name may stay the same for months; price and stock can change more often. You want to know whether the page exposes both kinds of information.

Mistake to avoid: Do not assume a fact is available just because it appears in an image, a button label or an interface control. Check whether the information is represented as text or machine-readable data in the response you are inspecting.

Step 3: Inspect the original HTML response

The original HTML response is what the browser receives before it runs page scripts. It is different from the live page after JavaScript has changed the document.

Use View Source

Open the product URL in a browser and enter view-source: before it in the address bar. For example:

view-source:https://example.com/products/product-name

Then use the browser’s find function to search for an exact phrase or value from your checklist. Search for the product name, a specification, a variant name, the price and the availability wording. If the page has a return statement or delivery detail, search for a distinctive part of that text too.

If you can find the fact in View Source, record that it is present in the original response. If it is not there, record No for that fact and continue the test. Its absence does not yet prove that it is inaccessible to every crawler. It tells you that the information was not in the response you inspected before browser scripts ran.

Use a terminal if that suits your team

You can make a basic request from a terminal and search the returned HTML. For example:

curl -sL "https://example.com/products/product-name" | grep -iE "product phrase|price|in stock"

Replace the example URL and search terms with your own. This is a quick diagnostic, not a complete crawler simulation. The response may vary by location, cookies, headers, access controls or other server behaviour. A terminal request also does not execute JavaScript.

If the command returns no matching text, inspect the response rather than assuming the page is broken. The product may use a different wording, the price may be formatted another way, or the response may be compressed or structured differently. You can save the response and search for a shorter, distinctive value.

Keep View Source and Elements separate

In browser developer tools, View Source shows the returned HTML. The Elements panel shows the current document structure after the browser may have run JavaScript and changed the page. If a fact appears in Elements but not in View Source, that is a useful clue that the browser added it after the initial response.

Record where the fact appears. For instance:

  • Price in original HTML and live page: present in both.
  • Price missing from original HTML but visible in Elements: likely added during rendering.
  • Price missing from both: possibly a data, loading or page issue.
  • Price in JSON-LD but not visible text: present in structured markup, but still worth reviewing for user-facing clarity and consistency.

A product page may contain the same data in multiple places. Check that the displayed price, selected variant and structured data describe the same offer. A mismatch is a separate issue from whether JavaScript runs.

Tip: Save a copy or screenshot of the relevant result if you need to hand it to development. Include the URL, date, browser and exact fact you searched for.

Mistakes to avoid: Do not treat a missing exact phrase as definitive if the page uses another format. Do not treat a JavaScript bundle being present in the HTML as proof that its product data was executed or displayed. A file reference and the product facts it might load are different things.

Step 4: Compare the original response with the normal page

Open the product page normally and compare it with your checklist. Confirm that the facts appear to a shopper and note whether any interaction is needed to reveal them.

Some details appear immediately. Others may appear after the page loads, after a shopper selects a variant, or after a tab or accordion is opened. Test the default view and any important interactions. If a size selector updates price or stock, note what happens when you choose another size. If delivery information is hidden in an accordion, check whether it is in the original HTML even when the panel is closed.

You can also temporarily disable JavaScript in your browser and reload the page as a rough diagnostic. If the page loses the price or specifications, compare that with your View Source result. A fact that is absent from the original HTML and disappears when scripts are disabled is a strong reason to investigate its rendering path.

This is not a perfect simulation of an AI crawler. A browser with JavaScript disabled does not necessarily make the same requests or follow the same rules as an AI service. Use the test to understand your page, not to claim what a specific platform can or cannot read.

Record the results fact by fact. For example:

FactOriginal HTMLNormal browser pageJavaScript disabledInitial interpretation
Product namePresentPresentPresentAvailable in initial response
PriceMissingPresentMissingInvestigate client-side loading
Stock statusMissingPresentMissingInvestigate API or rendering path
MaterialPresentPresentPresentNo gap found in this check

A page can also have a mixed result. The title and description may be in the initial HTML while the selected variant price and stock state arrive later. Avoid labelling an entire page simply JavaScript-only if only a few facts depend on it.

Tip: Test more than one variant when variant details affect the buying decision. Record the selected option and the resulting URL, if it changes.

Mistake to avoid: Do not treat the disabled-JavaScript view as the only evidence. Pair it with the original response and the normal rendered page.

Step 5: Test Google’s view separately

Google has its own JavaScript rendering process. Use its tools to inspect what Google can render and what it reports about the page. This answers a Google-specific question; it does not establish what an AI crawler receives.

Google recommends tools such as Search Console’s URL Inspection and the Rich Results Test for investigating JavaScript-related issues. These tools can help you inspect rendered output, loaded resources, console messages and exceptions. See Google’s guide to fixing search-related JavaScript problems.

Use URL Inspection in Search Console

If you have access to the site’s Search Console property, enter the product URL in URL Inspection. Review the available information about indexing and, where the tool offers it, test the live URL. Inspect the rendered result and compare it against your fact checklist.

Look for the product name, price, availability, variant information and other key details. Note any resource loading problems, errors or blocked requests that could explain missing content. Google’s Search Console overview explains the service and its reporting.

URL Inspection is a Google tool. If Google’s rendered result includes a price, that is evidence about Google’s rendering of that URL at the time of the test. It is not proof that a separate AI crawler fetched the same version, ran the same JavaScript or has indexed the page.

Use the Rich Results Test

The public Rich Results Test checks supported structured data on publicly accessible pages. Use it to review product markup and, where available, inspect Google’s rendered view. Keep the purpose clear: it tests Google-supported rich result requirements, not every detail that an AI assistant might need.

Compare the structured data with the visible page. Check whether the product name, offer, currency, price and availability are accurate for the page and selected product. Google’s product guidance says dynamically generated Product markup can make shopping crawls less frequent and reliable for rapidly changing price and availability details. Google recommends putting Product structured data in the initial HTML for merchants focusing on shopping results. That is a specific Google recommendation, not a guarantee about AI systems.

A Google test can help find a Google problem or confirm that Google can render a detail. It cannot settle the AI crawler JavaScript question by itself. Keep separate columns in your tracking sheet for the original HTML, rendered browser, Google test and any verified crawler access.

Tip: Capture the test date. Prices and inventory change, and a later test may show different data.

Mistakes to avoid: Do not say AI crawlers can read this because a Google tool displayed it. Do not assume valid structured data is enough if the visible product page contradicts it.

Step 6: Check access and crawler requests in logs

If your team can access server or CDN logs, look for requests to the product URLs from relevant crawlers. This can help answer whether a bot reached the page and what response your infrastructure returned.

Start by checking:

  • Whether the request reached the site or CDN.
  • The requested product URL and response status.
  • Whether the response was the expected page or an error, redirect or challenge.
  • Whether access rules, authentication, bot controls or rate limits may have affected the request.
  • Whether the same URL returns different content under different conditions.

Use official documentation to identify bot names and stated roles. OpenAI distinguishes OAI-SearchBot, used for ChatGPT search, from GPTBot, used for potential training-data collection, and ChatGPT-User, associated with certain user-initiated requests. These are different purposes, so a request from one does not stand in for all OpenAI access. Consult OpenAI’s bot documentation for the current descriptions.

Anthropic likewise lists separate bots for training, search and user-directed retrieval. Do not treat a request from one user agent as proof about another. Bot documentation tells you how a company describes its crawlers and access controls; it may not specify whether each one executes JavaScript.

Logs also have limits. They can show requests that your system recorded, but they may not show what happened after the response left your server. A log entry does not prove that a page was indexed, used in an answer or interpreted correctly. Confirm the bot identity using your organisation’s normal security process rather than relying only on a claimed user-agent string.

Tip: Ask your technical team for a small, focused log review around the product URLs and date range you tested. A useful answer is whether the relevant request received the expected HTML and status, not merely whether a bot name appears somewhere in a large log file.

Mistake to avoid: Do not block or allow a crawler based only on assumptions about its purpose. Review the relevant platform’s published guidance and your own access requirements before changing rules.

Step 7: Diagnose the type of gap

Once you have compared the different views, sort each missing fact into a likely category. A clear diagnosis helps development investigate the right layer.

ObservationPossible explanationWhat to check next
Fact is absent from original HTML but present in the browserClient-side JavaScript adds it after loadIdentify the script or API that supplies the fact
Fact appears in original HTML but not in the browserRendering, styling or script errorCheck console errors and page behaviour
Fact is absent from both viewsData, template or product configuration issueConfirm the product record and template output
Fact appears in Google’s test but not in original HTMLGoogle may render the page successfullyKeep testing other systems separately
Product page returns an error to a crawler requestAccess or infrastructure issueReview status, redirects, security rules and logs
Visible price differs from structured priceData mismatch or stale markupCheck source of truth and how variant offers are generated

These are starting points, not automatic diagnoses. A slow API, blocked resource, consent layer, variant selection or cache can produce similar symptoms. Ask development to trace one concrete example from the product data source through the initial response and into the rendered page.

For each issue, record the evidence: URL, fact, original HTML result, rendered result, Google result if tested, and any relevant log response. This reduces back-and-forth and helps the team reproduce the problem.

Tip: Investigate one fact on one page first. Once you understand the path, check whether the same template or component serves other products.

Mistake to avoid: Do not jump straight to a platform migration or full rebuild. First establish which facts are missing and where they enter the page.

Step 8: Decide what to fix first

Prioritise fixes by the importance of the information and how broadly the issue appears. A missing current price across a major product template is usually more urgent than a low-value detail hidden on one page. A missing stock state may matter more than a secondary piece of descriptive copy if shoppers need to know whether they can buy now.

A practical order is:

  1. Facts that determine whether a product can be bought, such as current price and availability.
  2. Variant-specific facts that affect what a shopper receives, including selected size, colour or configuration.
  3. Specifications needed to compare or qualify the product.
  4. Delivery, returns and warranty information that affects purchase decisions.
  5. Supporting details such as reviews or secondary descriptive content.

This is a prioritisation method, not a universal ranking formula. Your catalogue and customer needs should guide the order. Check the scope too: one broken product may be a data issue; a whole template with missing initial content may be a wider rendering issue.

Consider whether the issue is actually a delay or failure. If details appear after a long wait or only after a particular interaction, test the page consistently and share the precise steps. A crawler may have a different time limit or interaction model, but do not claim a specific limit unless the platform documents it.

Tip: Assign each issue an owner, next action and status. A finding without an owner can remain in a spreadsheet indefinitely.

Mistake to avoid: Do not prioritise a fix solely because a page looks technically modern or because someone has proposed a particular framework. Define the outcome first: the important facts should be available reliably in the page response and remain accurate.

Step 9: Work with development on a fix

If important details are absent from the initial HTML, ask your development team whether they can make the core product information available in the first response. Possible approaches include server-side rendering, static generation or another pre-rendering method. The right option depends on the site architecture, the freshness requirements of the data and how the product page is built.

You do not need to remove useful JavaScript interactions just because some product information depends on JavaScript today. A product page can still use client-side scripts for variant selectors, image galleries, filters or other interactive features. The goal is to avoid making access to essential facts depend entirely on a browser-side request that has not been verified for the systems you care about.

Ask development questions that connect the visible symptom to the implementation:

  • Which component or API supplies the missing fact?
  • Can that fact be included in the initial HTML response?
  • How will the page keep price and stock accurate when the source data changes?
  • Do all variants have the correct details, or only the default selection?
  • Is the structured Product data generated from the same source as the visible page?
  • Could caching cause a stale price or availability value?
  • What should happen if the API or a script fails?
  • How can the team test the result automatically on a representative product?

For Google shopping results, follow Google’s advice about putting Product structured data in the initial HTML, especially for changing offer details. Make sure the visible content and markup agree. Structured data should describe the actual product and offer on the page, not provide a special or misleading version for bots.

Do not create a separate product page that shows one thing to crawlers and another to shoppers. The aim is to make the same important facts available in the ordinary page response. That helps reduce ambiguity for both visitors and systems that consume the HTML.

If your store is built with a hosted commerce platform or a custom front end, the implementation options may differ. SearchFIT’s resources can help with broader AI search work, but a specific rendering fix should be assessed by the people who maintain your store and its product data.

Tip: Agree on a measurable acceptance check before development starts. For example: the selected product’s name, current price and availability appear in the initial HTML, and the visible page and structured data match.

Mistakes to avoid: Do not ask only for SEO-friendly JavaScript. That phrase can mean different things. Identify the exact product facts, URL and response where they are missing. Do not assume adding JSON-LD alone resolves missing visible content or guarantees AI access.

Step 10: Retest after the change

After a fix ships, repeat the same checks on the same URLs and facts. Use the same method so the before-and-after comparison is meaningful.

For each affected page:

  1. Open View Source or fetch the original response again.
  2. Search for the facts that were missing.
  3. Open the normal page and confirm the details remain correct.
  4. Test relevant variants and stock states.
  5. Check Google’s rendering tools again if Google was part of the investigation.
  6. Review logs if access or response behaviour was part of the original problem.
  7. Update the tracking sheet with the date, result and any remaining issue.

Do not stop at finding a string in the HTML. Check that it is the correct value, associated with the right variant and consistent with the live page. A static price that fails to update is not a good fix for a dynamic price issue. Likewise, a product’s structured data should not describe an unavailable variant as available.

Retest when relevant product data changes, especially price, inventory or variant configuration. If the update process changes the page response, repeat the check. You can also select a small set of representative URLs for regular manual spot checks and add automated checks if your development team can support them.

A successful retest means the specific facts you tested are present where you expect them. It does not prove that an AI assistant will cite the page. Citation and inclusion depend on factors beyond page rendering, including whether a system fetches or indexes the URL and how it selects sources for a particular answer.

Tip: Keep the original test results. They make it easier to spot regressions when a theme, app, API or page template changes.

Mistake to avoid: Do not declare the issue fixed based only on a Google test if the original problem concerned the initial response or another crawler. Retest the exact layer that showed the gap.

What the available evidence does and does not prove

The 2024 Vercel and MERJ study is useful because it measured crawler behaviour rather than relying only on assumptions. In the sample it reported, the major AI crawlers tested did not render JavaScript on the pages observed. It also reported that ChatGPT fetched JavaScript files in 11.50% of requests and Claude in 23.84%. Those figures describe the study’s observed requests, not the share of all AI crawlers or current behaviour across the web. Fetching a JavaScript file is not the same as executing it. See the study’s methodology and findings.

Google’s own guidance says Google Search has rendered JavaScript for years and that using JavaScript to load content does not, by itself, make a page harder for Google Search to process. Google’s pipeline and another service’s crawler are not interchangeable. The useful conclusion is not that every JavaScript page is invisible, or that every AI crawler ignores scripts. It is that e-commerce teams should inspect their own pages and avoid relying on untested assumptions for important facts. Google’s JavaScript SEO documentation explains its process.

There are also different kinds of access. A search crawler may fetch pages for search features. A training crawler may have another purpose. A user-directed fetch may happen in response to a person’s request. The name of a company does not mean every bot it operates behaves the same way. Check the published bot documentation and your own logs where available, but do not read a JavaScript-rendering guarantee into a bot description that does not make one.

The most reliable page-level workflow is therefore to compare evidence from separate sources:

  • Original HTML: What did the server return before browser scripts ran?
  • Rendered browser page: What does a shopper see after the browser runs the page?
  • Google tools: What can Google’s tools show about Google’s rendering and supported structured data?
  • Server or CDN logs: Did a relevant request reach the site, and what response did it receive?
  • AI answer checks: Does a particular assistant mention or cite the product for a relevant prompt? This is a separate visibility check, not a substitute for examining HTML.

Keep the question and result specific. Google rendered the price on this URL on this date is a stronger, more accurate finding than AI can read our prices. The first statement reflects evidence you collected. The second makes a broad claim that your test may not support.

Common mistakes when checking product pages

Treating a browser view as proof of crawler access

A normal browser runs JavaScript and may load data through APIs. That is what shoppers often experience, but it does not show what arrived in the original HTML. Compare the browser view with View Source.

Treating Google as a stand-in for AI systems

Google has its own rendering process. A Google test can answer useful questions about Google, but it cannot prove that a separate service received the same page or executed the same code.

Assuming a bot name explains rendering behaviour

Official bot documents describe crawler purposes and controls. Unless they explicitly say how the bot handles JavaScript, do not infer that behaviour from its name or role.

Checking only structured data

Structured data can help describe a product, especially for supported search features, but it is not proof that all systems can use the facts. Check the initial HTML and the page shoppers see, and make sure the values match.

Making conclusions from one page

A single URL can reveal a real issue, but it may be unusual. Test representative templates, variants and product states before estimating the scope.

Rebuilding before identifying the gap

A missing variant price, an API failure and a blocked page response are different problems. Diagnose the layer first, then ask development to choose an appropriate fix.

Treating a technical check as a citation guarantee

Putting a fact in HTML makes it available in that response. It does not guarantee indexing, a mention or a citation. Measure those outcomes separately.

A practical checklist for your team

Use this checklist to keep the investigation focused:

  • Select representative product URLs and templates.
  • List the exact facts buyers need from each page.
  • Record the date, selected variant and product state.
  • Search the original HTML for each fact.
  • Compare the original response with the live browser page.
  • Use JavaScript-disabled browsing only as a rough diagnostic.
  • Test Google separately with Search Console or the Rich Results Test.
  • Check logs for relevant crawler requests if access is available.
  • Classify each gap and identify the likely owner.
  • Ask development to make important facts available reliably in the page response.
  • Confirm visible content and Product structured data agree.
  • Repeat the same checks after a fix and when key data changes.

For ongoing visibility work, keep technical accessibility separate from answer monitoring. SearchFIT’s pricing page describes its AI visibility tracking and technical audit offering. Those checks can support broader monitoring, but they are not a substitute for comparing a product’s original HTML with its rendered page or for testing Google’s view.

Short wrap-up

An AI crawler JavaScript problem is possible when a product’s important facts exist only after browser scripts run, but the answer depends on the page and the system. Start with representative products, check the original HTML, compare it with the rendered page, and test Google independently. If price, availability or other buyer-critical details are missing from the initial response, work with development on a reliable way to expose them and then repeat the same checks. The next step is to review SearchFIT’s pricing and visibility options if you also need to monitor how your brand appears in AI answers.

Get SearchFIT Weekly

What we are learning about getting brands cited in AI search, in your inbox every week. Unsubscribe any time.