Chapter 4. Understanding Slider Performance

Responsive Images

A photo that looks sharp across a 27-inch monitor can be 2,000 pixels wide or more. A phone held upright shows it about 400 pixels wide. Sending the large file to the phone wastes most of the download and slows the page for exactly the visitors on the slowest connections.

Responsive images solve this by offering the browser several copies of the same image at different widths and letting it choose. SwiftSlider generates a copy at each of your breakpoints, by default 1200, 768 and 480 pixels wide, plus a compressed copy at full size. It then describes them in the page's HTML so each browser can pick the smallest one that still looks sharp on its screen.

Each copy is also generated in two modern formats:

AVIF

Usually the smallest files for the same visual quality. Supported by all current major browsers.

WebP

Smaller than JPEG or PNG and supported almost everywhere.

Browsers take AVIF if they can, then WebP, and fall back to the compressed copy in your image's original format. How the browser chooses between sizes depends on the slider's Image Delivery setting; the section called “Choose an Image Delivery Strategy” helps you pick one, and Appendix A, Which Image Each Screen Receives shows exactly which file each screen receives.

On This Page