AI search & SEO

What is javaScript SEO?

JavaScript SEO is making sure pages built with JavaScript frameworks can be read by search engines and AI crawlers. If content only appears after scripts run in the browser, crawlers that don't run JavaScript see an empty page, so sites often prerender or server-render their HTML.

The problem

Sites built as single-page apps (React, Vue and similar) often send the browser an almost empty HTML file and build the page with JavaScript. Google can render JavaScript, but may do it later than the initial crawl. Many other crawlers, including most AI crawlers, read the raw HTML only, so they see no content, no titles and no links.

The fixes

  • Prerendering or static generation: build the HTML for each page in advance, so every crawler gets the full content.
  • Server-side rendering: generate the HTML on the server per request.
  • Make sure each page's title, description, canonical tag and structured data are in that HTML, not added later.

How to check

View the page source (not the inspector) or fetch it with a tool like curl. If the text you see in the browser isn't in the raw HTML, crawlers that don't run JavaScript can't see it either.

In practice

Run "curl -s https://yourdomain.com/your-service-page" or use a "view rendered vs. raw HTML" tool. If the response contains only an empty div and script tags, crawlers that don't run JavaScript see nothing. Prerendering the site at build time is often the least disruptive fix for an existing React or Vue site.

Book a call

Put it to work. Talk it through with Kyle.

Pick a time for a free 30-minute strategy session. We look at your marketing, find the biggest opportunities, and map out what to build, whether we work together or not.

Kyle Painter
Kyle Painter
Co-founder, Disruptors Media

Can't see the calendar? Open it in a new window