Skip to main content
⚑ Technical SEO Intermediate Medium Effort Google

Test if LLMs can see your website content (JavaScript dependency check)

Daniel Foley Carter

Daniel Foley Carter @foley_seo

Verified source on Twitter/X

Key Takeaway

Testing your website without JavaScript reveals what AI search engines actually see when crawling your content. Many sites load critical elements like product descriptions, reviews, or navigation through JavaScript, making them invisible to LLMs that don't render scripts. Use Chrome DevTools to disable JavaScript, then extract all visible text with console.log(document.body.innerText) to identify gaps. Compare this output with your JavaScript-enabled version to spot missing content that could hurt your AI search visibility.

Why does JavaScript dependency matter for LLM visibility?

Large Language Models (LLMs) like ChatGPT, Claude, and Google's Gemini don't always render JavaScript when analyzing websites. If your key content relies on JavaScript to display, AI search engines might miss it entirely.

This creates a blind spot that could hurt your visibility in AI-powered search results.

How do you test if LLMs can actually see your website content?

Test if LLMs can see your website content (JavaScript dependency check)

Here's a simple way to see exactly what text an LLM can access from your pages:

  1. Open the page you want to test in Chrome
  2. Press F12 to open Developer Tools
  3. Click the Elements tab, then press Ctrl + Shift + P
  4. Type "java" in the search box and select "Disable JavaScript"
  5. Refresh the page
  6. Switch to the Console tab and paste this code:
    console.log(document.body.innerText);
  7. Press Enter to see all visible text

How does content differ between JavaScript and non-JavaScript versions?

To find missing content:

  1. Save the output from step 7 to a text file (let's call it "no-js.txt")
  2. Re-enable JavaScript by refreshing and repeating steps 3-4, but select "Enable JavaScript"
  3. Run the same console command and save this output ("with-js.txt")
  4. Upload both files to ChatGPT, Claude, or Gemini
  5. Ask the AI: "Compare these two files and highlight what content is missing from the first one"

What will you discover about your site's LLM accessibility?

This test reveals:

  • Navigation menus that don't load without JavaScript
  • Product descriptions rendered dynamically
  • Review sections that appear via AJAX
  • Key calls-to-action hidden behind JavaScript
  • Blog content loaded asynchronously

What are the quick fixes when LLMs can't see your content?

If you find critical content missing:

  • Add server-side rendering for essential text
  • Use progressive enhancement instead of JavaScript-dependent content
  • Include key information in HTML meta tags
  • Consider adding text alternatives for JavaScript-heavy sections

This 10-minute test could reveal why your content isn't showing up in AI search results.

X work chat send
Go Deeper

Read ⚑ Technical SEO Guides

In-depth how-to articles →

Take Action

Follow the Technical SEO Checklist

Step-by-step implementation →

Related Tips

More Technical SEO Tips

View all arrow_forward
⚑

Browse all Technical SEO tips

Curated tips for technical seo →

Get the weekly SEO digest

Get 3 actionable SEO tips every week β€” free.

Join solo founders leveling up their SEO. No agency required. Unsubscribe anytime.