dynamic-import

Official

Load code on demand to shrink initial bundles.

AuthorPatternsDev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Dynamically load modules to reduce the initial bundle size by loading non-critical parts only when needed.

Core Features & Use Cases

  • Dynamic imports: Use React.lazy with Suspense to load components on demand.
  • Fallback UI: Provide meaningful fallback UI while dynamic modules load.
  • SSR considerations: Consider using loadable-components for server-side rendering where React Suspense isn't supported.
  • Usage scenarios: Ideal for heavy libraries, modals, or features not required at initial render.

Quick Start

Wrap non-critical components with React.lazy and Suspense to load them on demand.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dynamic-import
Download link: https://github.com/PatternsDev/skills/archive/main.zip#dynamic-import

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.