🎨 Frontend Engineering · Web Performance
Ship images that cost almost nothing
Modern formats, responsive sizes, lazy strategies, and priority hints for above-fold heroes.
foundation~25 minFrontend EngineersFull-Stack DevelopersDesign Engineers
Steps
- 1Serve AVIF/WebP with automatic fallbacks via an image component or CDN
- 2Generate responsive srcsets at 3-4 widths matched to actual layout slots
- 3Lazy-load below-fold images; set fetchpriority=high on the LCP hero only
- 4Always set explicit width and height to protect CLS
- 5Strip metadata at upload; cap decoded size for thumbnails
- 6Audit monthly for orphaned assets and unoptimized direct <img> usage
Common Pitfalls
- ▲Lazy-loading the hero because a global wrapper applied it
- ▲Serving 2400px originals into 300px cards
Commands
Install with skills CLI
$ npx skills add aniruddhaadak80/skills --skill web-performance-image-pipelineInstall globally
$ npx skills add aniruddhaadak80/skills --skill web-performance-image-pipeline -gTags
#images#performance#frontend-engineering#web-performance