Start a project

Digital growth

Technical SEO for JavaScript-heavy websites

Interactive sites and web apps can rank well if search engines can read them. A practical checklist for teams building with modern JavaScript.

Modern websites are often built as JavaScript applications: interactive, fast to navigate and pleasant to use. They can also be surprisingly invisible to search engines if a few fundamentals are missed. The good news is that none of this requires choosing between a great experience and good search visibility. It requires building the site so that the important content does not depend on JavaScript running perfectly.

Here is the checklist we work through.

1. Render the important content on the server

Search engines can run JavaScript, but rendering it costs them time and resources, and it may happen later than the first crawl, or not completely. Content that only appears after scripts run is at a disadvantage.

The fix is to send meaningful HTML in the first response. Frameworks such as Next.js make this straightforward with server rendering or static generation. A useful test: load the page with JavaScript disabled. If the headings, body copy and links are there, you are in good shape. If you see an empty shell and a loading spinner, so does the crawler on its first visit.

This matters even more for highly visual sites. A 3D scene, an animation or an interactive configurator can be the best thing on the page, but search engines cannot read a canvas. Put the words that explain the page in real HTML, and treat the visual layer as an enhancement.

2. Make every page a real URL

Each piece of content that deserves to be found needs its own URL that returns the right content when requested directly. Watch out for:

  • Content behind clicks or tabs that never changes the URL. If it matters for search, give it a route.
  • Hash-based routing (/#/products). Use real paths (/products) instead.
  • Correct status codes. A missing page should return a 404, not a friendly "not found" message with a 200 status. Redirects should be server-side 301s for permanent moves.

Crawlers discover pages by following links, and they follow <a href="…"> elements. Navigation built from buttons or click handlers on divs may work for people with a mouse, but it hides pages from crawlers and from keyboard and screen-reader users. One habit fixes both: if it takes you somewhere, it is a link.

4. Get the head right on every page

Each page needs its own:

  • title that describes the page, not just the brand
  • meta description written for the person reading search results
  • canonical URL, so variations (tracking parameters, filters, trailing slashes) do not compete with each other
  • Open Graph and social tags, so shared links look deliberate

In JavaScript applications these are easy to get wrong when they are only set on the client. Generate them on the server along with the page.

5. Add structured data where it is genuinely useful

Structured data (JSON-LD using schema.org vocabulary) helps search engines understand what a page is: an organisation, a service, an article, a product, a set of breadcrumbs. Keep it accurate and consistent with what is visible on the page. Never mark up content that is not there.

6. Help crawlers find everything

  • An XML sitemap listing your canonical URLs, kept up to date automatically.
  • A robots.txt that points to the sitemap and does not accidentally block scripts or styles the page needs to render.
  • Noindex for pages that should not appear in search: thank-you pages, internal tools, endless filtered variations.

7. Treat performance as part of SEO

Page experience signals, including Core Web Vitals, are part of how search engines assess pages, and slow pages lose visitors whatever their ranking. The usual suspects on JavaScript-heavy sites are:

  • Large JavaScript bundles delaying interactivity. Split code by route and load heavy features, such as a 3D scene or a chat widget, only when they are needed.
  • Late-loading main content pushing out Largest Contentful Paint. Make sure the main image or heading is in the initial HTML and is not waiting on scripts.
  • Layout shifts from images, fonts and embeds without reserved space. Always set dimensions.

Measure with real tools rather than assumptions: lab tests during development, and field data from real visitors once the site is live.

8. Accessibility and SEO pull in the same direction

Semantic headings, descriptive link text, text alternatives for meaningful images and a logical page structure help screen-reader users and search engines alike. If a page makes sense to someone who cannot see it, it usually makes sense to a crawler too.

A quick way to audit your own site

If you want a rough health check this afternoon:

  1. Open a key page with JavaScript disabled. Is the main content there?
  2. View the page source (not the inspector). Do you see the title, description and canonical tag?
  3. Click through your navigation using only the keyboard. Do the links behave like links?
  4. Visit a page that does not exist. Does it return a 404 status?
  5. Check that your sitemap exists and lists the pages you care about.
  6. Run a performance test on mobile settings, and look at what is loading before the main content.

Each "no" is a fixable problem, and most of them are cheaper to fix than to keep working around.

The short version

Search engines reward sites they can read quickly and reliably. Build the important content into the HTML, give every page a real URL and real links, set the page details on the server and keep heavy JavaScript out of the critical path. Then you can be as ambitious as you like with the experience on top.

Technical SEO is a core part of our digital marketing work, and it shapes how we approach every frontend and web development project. If your site looks great but is not being found, let us take a look.

Last stop on the line

Got a wild idea? Good.

We like the ones that look impossible. Tell us what you are trying to build and we will tell you, honestly, how we would approach it.

Let’s build something brilliant