Responsive design has become a de facto standard in web development. It is based on three main ideas:
• A flexible, grid-based layout
• Media queries
• Flexible images and media
This talk will concentrate on the last point, flexible images and media.
We will walk through progressively more sophisticated ways of handing images responsively, and we'll use an example site to illustrate the techniques.
We’ll start with the basic CSS for responsive images. We will touch on responsive background images, and responsive video. Then, we’ll delve into some performance issues with responsive images, like serving more images than you need, or downloading images larger than they need to be. To overcome these problems, we’ll employ some shiny new HTML specifications, the srcset and sizes attributes, and the even newer element. We’ll conclude with a demonstration of the Picturefill polyfill, which will allow you to use the new HTML features even in browsers that don’t yet support them.
Come check out the show; it will be even better than Hamilton.
From a presentation to the Front-End Developers Meetup in Charlotte, NC, on July 28, 2016.