← Back to Changelog
Request-Level Media Preload Options
You can now control media preloads on individual Storefront API requests.
Use responseOptions.mediaPreloads.enabled to turn image preload hints off for a specific request, or pass responseOptions.mediaPreloads.srcsetSizes to choose the image widths used for that response.
This gives headless and custom storefronts more control over performance behavior on pages where the default preload settings are not the right fit.
ImprovementStorefront APIDevelopers