Free auditStart free
GuideReact · Performance

React lazy loading and SEO

Code-split components with React.lazy and Suspense, avoid the mistakes that hide content from Google, and test lazy-loaded content with URL Inspection.

3 min
read
4
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

React.lazy defers a component's code until it first renders: const Chart = lazy(() => import('./Chart.js')), wrapped in <Suspense fallback={...}>. For Search, Google says your lazy-loading must load all relevant content whenever it is visible in the viewport, without relying on scrolling or clicking.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Worth knowing

How React.lazy and Suspense work

React's reference says lazy lets you defer loading a component's code until it is rendered for the first time. You pass a function that returns a Promise resolving to a module with a default export that is a valid React component.

Default export

the imported module must export the component as its default.

Top level only

declare lazy components at module level. The docs warn that declaring one inside a component resets state on re-renders.

Cached

the load function is called once.

Failures

a rejected Promise is thrown to the nearest error boundary, so add one.

Fallback

<Suspense> shows its fallback until children finish loading. It does not detect data fetched in Effects or event handlers.

Report.jsx
import { lazy, Suspense } from 'react';

const Chart = lazy(() => import('./Chart.js'));

export function Report({ data }) {
  return (
    <Suspense fallback={<p>Loading chart</p>}>
      <Chart data={data} />
    </Suspense>
  );
}
02Lazy-load decisions for SEO

What Google says about lazy-loaded content

Google's lazy-loading guide says: "To ensure that Google sees all content on your page, make sure that your lazy-loading implementation loads all relevant content whenever it is visible in the viewport." It lists three approaches: the browser's built-in lazy-loading for images and iframes, the IntersectionObserver API, and JavaScript libraries that load content when it enters the viewport.
Case

A chart or widget below the fold that mounts without interaction

Safe?
Yes
Why
It does not wait for a click or scroll, so it can appear in the rendered page. Confirm in URL Inspection.
Case

Reviews or body copy that mount only after a click

Safe?
No
Why
Google doesn't click, so the text may never be rendered.
Case

Content that loads on scroll events

Safe?
No
Why
Google says its listed methods do not rely on scrolling. Use IntersectionObserver or built-in lazy loading.
Case

Content likely visible when the page opens

Safe?
Avoid
Why
Google says lazy-loading it can make it take longer to load and show up.
Case

Product images below the fold

Safe?
Yes, natively
Why
Use loading="lazy" on img. React.lazy is for component code, not images.
Case

Infinite scroll lists

Safe?
Only with URLs
Why
Give each chunk a persistent URL, such as ?page=12, linked sequentially.

It adds that these methods don't rely on user actions, such as scrolling or clicking, to load content, which is important as Google Search does not interact with your page. It also says not to add lazy-loading to content that is likely to be immediately visible when a user opens a page, because that can make it take longer to show up.

Don't hide indexable content behind a click
// Content exists only after a click: Google won't see it
{open && (
  <Suspense fallback={null}>
    <Reviews />
  </Suspense>
)}
03Explained

Server rendering and Suspense

React's Suspense reference says React includes optimizations such as Streaming Server Rendering and Selective Hydration that are integrated with Suspense. If your page is client-side rendered, the lazy chunk has to load and execute before its content exists. Google says some JavaScript sites need it to execute JavaScript before it can see the page content, and that pages wait in a render queue for a few seconds or longer. See JavaScript SEO and client-side rendering.

04How it works

Test it in two minutes

  1. 1

    Inspect the URL

    In Search Console, run the URL Inspection tool on the live page and view the rendered HTML.

  2. 2

    Search for lazy content

    Confirm your lazy component's text, and any image src values, appear in the rendered HTML. Google's guide says that if your image or video URLs appear in the src attribute in the rendered HTML, your setup works correctly.

  3. 3

    Check the network

    In DevTools, confirm the chunk loads without a click or scroll when the component is in view.

  4. 4

    Don't lazy-load your main image

    For hero images see lazy-loaded LCP image.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01How do I add lazy loading in React?

Replace a static import with const Comp = lazy(() => import('./Comp.js')) and render it inside <Suspense fallback={...}>. Declare it at module level.

02Does React.lazy hurt SEO?

Not by itself. Google says to make sure all relevant content loads whenever it is visible in the viewport, and that Google Search does not interact with your page, so loading must not depend on scrolling or clicking. Check the rendered HTML in URL Inspection.

03What does Suspense do?

It shows a fallback until its children finish loading, such as lazy component code or a Promise read with use.

04Can I lazy-load images with React.lazy?

No, lazy is for component code. Google lists the browser's built-in lazy loading for images and iframes as one supported approach.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • react.dev
  • google.com
  1. 01lazy | Reactreact.dev · checked 2026-10-25
  2. 02Suspense | Reactreact.dev · checked 2026-10-25
  3. 03Fix lazy-loaded content | Google Search Centraldevelopers.google.com · checked 2026-10-25
  4. 04Understand JavaScript SEO basics | Google Search Centraldevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane