GUIDES BY TOPIC
Delivery & Performance
Connect image APIs to responsive markup, browser discovery, caching, format negotiation, Core Web Vitals, and measured delivery performance.
-

Set fetchpriority for Critical Images
Use fetchpriority=high sparingly for the image most likely to become LCP, after confirming that early discovery alone is insufficient.
-

Avoid Lazy-Loading the Hero Image
Do not lazy-load an above-the-fold hero; let the browser discover it in the initial markup and prioritize it normally or explicitly.
-

Optimize an LCP Image API Request
Optimize an LCP image by making it discoverable early, correctly sized, high priority, and cheap to fetch and decode.
-

Use the Picture Element for Art Direction
Use picture for art direction or format fallback, not as a substitute for a well-formed responsive candidate set.
-

Build Responsive Images with srcset and sizes
Responsive images work when srcset describes candidates and sizes truthfully describes the rendered slot.
-

Set Cache-Control for Immutable Image URLs
Canonicalize the transformation and version in the cache key, keep immutable URLs long-lived, and bound every Vary dimension.
-

Optimize Product Image Galleries
Keep catalog identity separate from media identity and generate named storefront renditions from an approved source version.
-

Use Cookies or Tokens for Image Access
Bind access to a specific asset or approved transformation, keep the lifetime short, and define what revocation and cache behavior mean.
-

Cache Image API Responses in a Service Worker
Canonicalize the transformation and version in the cache key, keep immutable URLs long-lived, and bound every Vary dimension.
-

Use Signed Delivery URLs
Bind access to a specific asset or approved transformation, keep the lifetime short, and define what revocation and cache behavior mean.
-

Serve a Local Placeholder During Image API Failure
Classify failures, preserve one logical operation identity, cap attempts and total time, and make fallback state visible.
-

Version Image URLs for Safe Cache Invalidation
Publish additive changes first, make version selection explicit, and keep a compatibility window backed by contract tests.