lazy-loading-patterns
Installation
SKILL.md
Lazy Loading Patterns
Code splitting and lazy loading patterns for React 19 applications using React.lazy, Suspense, route-based splitting, and intersection observer strategies.
Overview
- Reducing initial bundle size for faster page loads
- Route-based code splitting in SPAs
- Lazy loading heavy components (charts, editors, modals)
- Below-the-fold content loading
- Conditional feature loading based on user permissions
- Progressive image and media loading
Core Patterns
1. React.lazy + Suspense (Standard Pattern)
import { lazy, Suspense } from 'react';