Responsive Features

The Image Component comes with robust responsive features ready right out of the box. At the page template level, the design dialog can be used to define the default widths of the image asset. The Image Component automatically loads the correct width to display depending on the size of the browser window. As the window is resized, the Image Component dynamically loads the correct image size on the fly. There is no need for component developers to worry about defining custom media queries since the Image Component is already optimized to load your content.

In addition, the Image Component supports lazy loading to defer loading of the actual image asset until it is visible in the browser, increasing the responsiveness of your pages.

TIP
By default, the Image Component is powered by the Adaptive Image Servlet. See Adaptive Image Servlet for details on how it works.

Differences with v2

Unlike version 2 of the Image Component, version 3 uses browser-native responsiveness. This means that it provides the browser with a set of sources for an image for different widths and the browser will pick the best.

Most of the time, browsers prefer to locally downsize a larger width to fit a smaller viewport instead of fetching the smaller width image from the server. This is expected and why the Image Component should not be used for art direction (different images/crops for different viewports).

Please see the technical documentation of the Image Component for more information.