# 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.

Canonical: https://scaplet.com/seo/react/lazy-loading

Guide React React · Performance

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Freact%2Flazy-loading%20(%22React%20lazy%20loading%20and%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Freact%2Flazy-loading%20(%22React%20lazy%20loading%20and%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Freact%2Flazy-loading%20(%22React%20lazy%20loading%20and%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Freact%2Flazy-loading%20(%22React%20lazy%20loading%20and%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 3 minutes.

1. [How React.lazy and Suspense work 01](#how-react-lazy-and-suspense-work)
2. [What Google says about lazy-loaded content 02](#what-google-says-about-lazy-loaded-content)
3. [Server rendering and Suspense 03](#server-rendering-and-suspense)
4. [Test it in two minutes 04](#test-it-in-two-minutes)

_01_Worth 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> ); }
```

_02_Lazy-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](/glossary/url-inspection-tool).

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](/glossary/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](/glossary/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> )}
```

_03_Explained

## Server rendering and Suspense

React's Suspense reference says React includes optimizations such as Streaming [Server Rendering](/glossary/server-side-rendering) and Selective [Hydration](/glossary/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](/glossary/javascript-seo) and [client-side rendering](/glossary/client-side-rendering).

_04_How it works

## Test it in two minutes

1. 1

### Inspect the URL

In [Search Console](/glossary/google-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](/seo-issues/lazy-loaded-lcp-image).

Related: [lazy loading](/glossary/lazy-loading) and [Next.js image SEO](/seo/nextjs/image-seo).

Questions

## Asked a lot.

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

_01_ How 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.

_02_ Does 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.

_03_ What does Suspense do?

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

_04_ Can 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. 01 [lazy | React](https://react.dev/reference/react/lazy) react.dev · checked 2026-10-25
2. 02 [Suspense | React](https://react.dev/reference/react/Suspense) react.dev · checked 2026-10-25
3. 03 [Fix lazy-loaded content | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/javascript/lazy-loading) developers.google.com · checked 2026-10-25
4. 04 [Understand JavaScript SEO basics | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics) developers.google.com · checked 2026-10-25

## Keep learning

[All platform guides](/seo)

[Learn Next.js lazy loading Frameworks](/seo/nextjs/lazy-loading) [Related LCP image is lazy-loaded Performance](/seo-issues/lazy-loaded-lcp-image) [Read next Shopify lazy loading Ecommerce](/seo/shopify/lazy-loading) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in platform guides
[Nuxt XML sitemap](/seo/nuxt/xml-sitemap) [Rank Math SEO plugin setup](/seo/rank-math/seo) [React Router (Remix) redirects](/seo/remix/redirects) [Sanity SEO](/seo/sanity)

Terms on this page
[URL Inspection tool](/glossary/url-inspection-tool) [Lazy loading](/glossary/lazy-loading) [Infinite scroll](/glossary/infinite-scroll) [JavaScript SEO](/glossary/javascript-seo) [Client-side rendering](/glossary/client-side-rendering) [Server-side rendering](/glossary/server-side-rendering) [Hydration](/glossary/hydration) [Google Search Console](/glossary/google-search-console)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
