Default export
the imported module must export the component as its default.
Code-split components with React.lazy and Suspense, avoid the mistakes that hide content from Google, and test lazy-loaded content with URL Inspection.
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.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
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.the imported module must export the component as its default.
declare lazy components at module level. The docs warn that declaring one inside a component resets state on re-renders.
the load function is called once.
a rejected Promise is thrown to the nearest error boundary, so add one.
<Suspense> shows its fallback until children finish loading. It does not detect data fetched in Effects or event handlers.
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>
);
}loading="lazy" on img. React.lazy is for component code, not images.?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.
// Content exists only after a click: Google won't see it
{open && (
<Suspense fallback={null}>
<Reviews />
</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.
In Search Console, run the URL Inspection tool on the live page and view the rendered HTML.
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.
In DevTools, confirm the chunk loads without a click or scroll when the component is in view.
For hero images see lazy-loaded LCP image.
Related: lazy loading and Next.js image SEO.
4 questions people ask next, answered from the sources on this page.
Replace a static import with const Comp = lazy(() => import('./Comp.js')) and render it inside <Suspense fallback={...}>. Declare it at module level.
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.
It shows a fallback until its children finish loading, such as lazy component code or a Promise read with use.
No, lazy is for component code. Google lists the browser's built-in lazy loading for images and iframes as one supported approach.
Run the free audit, then approve the fixes. Every change can be undone.