Guides web image optimization with modern formats, responsive markup, lazy loading, and build-pipeline settings.
- What it does
- This skill provides reference guidance for optimizing images for web performance. It covers format selection (JPEG, PNG, WebP, AVIF, SVG), responsive image markup with srcset and picture elements, lazy loading patterns, a Sharp-based build pipeline example, performance size targets, and an optimization checklist. It produces recommendations and code snippets rather than running any tooling itself.
- When to use it
- Use it when improving page load times, implementing responsive images, or preparing image assets for production deployment. It suits front-end and performance work where format, sizing, and loading strategy decisions are needed.
- Requirements
- No scripts or packages are required to use the guidance; the Sharp example assumes Node.js with the sharp package if the reader chooses to implement it.