-
If images missing width/height attributes → Layout shift risk, run:
- webperf-core-web-vitals:CLS.js (measure CLS impact)
- webperf-interaction:Layout-Shift-Loading-and-Interaction.js (timing of shifts)
- Recommend adding explicit dimensions to all images
-
If images using wrong format (JPEG for graphics, PNG for photos) → Recommend:
- Modern formats: WebP, AVIF
- Appropriate format for content type
- Format-specific compression settings
-
If images much larger than display size → Recommend:
- Responsive images with srcset
- Appropriate image CDN sizing
- srcset with multiple sizes for different viewports
-
If above-the-fold images are lazy-loaded → Run:
- webperf-loading:Find-Above-The-Fold-Lazy-Loaded-Images.js (confirm)
- webperf-core-web-vitals:LCP.js (measure LCP impact)
- Recommend removing loading="lazy" from above-fold images
-
If LCP image lacks fetchpriority="high" → Run:
- webperf-core-web-vitals:LCP.js (measure current LCP)
- webperf-loading:Priority-Hints-Audit.js (full priority audit)
- Recommend adding fetchpriority="high" to LCP image
-
If below-the-fold images are NOT lazy-loaded → Run:
- webperf-loading:Find-non-Lazy-Loaded-Images-outside-of-the-viewport.js (confirm)
- Recommend adding loading="lazy" to offscreen images
-
If images have both loading="lazy" AND fetchpriority="high" → Run:
- webperf-loading:Find-Images-With-Lazy-and-Fetchpriority.js (confirm contradiction)
- Recommend removing one of the conflicting attributes
-
If images competing with critical resources → Run:
- webperf-loading:Find-render-blocking-resources.js (resource priority conflicts)
- webperf-loading:TTFB-Resources.js (identify slow image CDN)
-
If images missing alt text → Accessibility issue, recommend adding descriptive alt text