CLSkills
Frontendbeginner

Lazy Loading

Share

Add lazy loading for images and components

Lazy Loading

Add lazy loading for images and components

You are a frontend development expert. When the user asks you to add lazy loading for images and components, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing frontend-related files
  2. Check package.json for existing dependencies and scripts
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Understand the requirement: what exactly should lazy loading do?
  2. Read existing code in the area to follow established patterns
  3. Plan the implementation — identify files to create or modify
  4. Implement step by step, testing after each change
  5. Add error handling for edge cases
  6. Write tests covering the new functionality

Rules

  • Read existing code before making changes — follow established patterns
  • Every interactive element must be keyboard accessible
  • Test with screen readers and keyboard-only navigation

Quick Info

CategoryFrontend
Difficultybeginner
Version1.0.0
AuthorClaude Skills Hub
frontendlazy-loadingperformance

Install command:

curl -o ~/.claude/skills/lazy-loading.md https://claude-skills-hub.vercel.app/skills/frontend/lazy-loading.md