verify-lazy-loading

Validate React.lazy, Suspense, and ErrorBoundary implementation in UI components.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/BIGSHOL/ijw-Calander --skill verify-lazy-loading
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-lazy-loading
Source: https://github.com/BIGSHOL/ijw-Calander/tree/main/.claude/skills/verify-lazy-loading
Command: npx skills add https://github.com/BIGSHOL/ijw-Calander --skill verify-lazy-loading

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that React components are loaded efficiently using React.lazy and Suspense, preventing performance bottlenecks and improving user experience by avoiding large initial bundle sizes.

Core Features & Use Cases

  • Lazy Loading Verification: Checks if components intended for lazy loading are correctly implemented with React.lazy.
  • Suspense and Error Boundary Integration: Verifies that lazy-loaded components are properly wrapped in Suspense for fallback UI and ErrorBoundary for error handling.
  • Use Case: After adding a new tab to the application's main layout, run this Skill to confirm that the new tab's content is lazy-loaded and handled gracefully in case of errors, maintaining the application's responsiveness.

Quick Start

Run the verify-lazy-loading skill to check the current state of component loading.

Frequently Asked Questions about verify-lazy-loading

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify React.lazy and Suspense are correctly implemented in my components?

To verify React.lazy and Suspense implementation, run a check that confirms components use dynamic imports and are wrapped in Suspense for fallback UI. This validation ensures efficient component loading and prevents large initial bundle sizes in your React application.

When do I need to use ErrorBoundary with lazy loaded components?

You need to use ErrorBoundary with lazy loaded components to handle dynamic import failures gracefully. Wrapping React.lazy components in an ErrorBoundary prevents application crashes when chunk loading fails, maintaining UI responsiveness during component loading errors.

Does this component loading check work for tabs and modals in React?

Yes, this component loading check validates lazy loading patterns across various UI modules including tabs, modals, and managers. It verifies that large components in these modules are dynamically imported and properly wrapped with Suspense and ErrorBoundary.

What is the best way to optimize initial load times for large React components?

The best way to optimize initial load times is implementing React.lazy with Suspense to dynamically import large components. Verifying correct import counts and Suspense wrapping ensures components load efficiently only when needed, reducing initial bundle size.

Why does my React application have performance bottlenecks after adding new tabs?

Performance bottlenecks after adding new tabs often occur when components are not lazy loaded. Without React.lazy and Suspense wrapping, all tab content loads synchronously, increasing initial bundle size and degrading application responsiveness.