Foundation Interchange vs Native HTML: Choosing the Right Responsive Strategy
Foundation's Interchange swaps HTML partials by media query, but native srcset is usually better for images. Learn when to use each and how to verify the trade-offs.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Foundation's Interchange swaps HTML partials by media query, but native srcset is usually better for images. Learn when to use each and how to verify the trade-offs.
Use <picture> with ordered <source> elements and srcset to let browsers pick the right image by viewport and format, with an <img> fallback for accessibility and old browsers.
With next/image, omitting the sizes attribute leaves the browser without a layout hint, so it falls back to 100vw while Next.js still emits a srcset built from images.deviceSizes and images.imageSizes. This often causes the browser to select a candidate wider than the rendered slot, wasting bytes even though the optimizer is active. The candidate widths are