Chapter 6: Responding to User Context

Our example page is now responsive, and will work well on a wide variety of devices—scaling layout, images, media and text to suit.

In this final chapter, we’ll look at techniques for adjusting user experience based on user context or preference. A real-world application would react to a lot of these situations from the back end, serving appropriate content to suit each case. Still, it’s interesting to understand the different ways and reasons an interface can change, and I hope this chapter gives an idea of what’s possible.

An API for Everything

Modern HTML and JavaScript let you check for a wide variety of parameters and then adapt what users see. The media-heavy nature of our demo site gives a lot of ...

Get Jump Start Responsive Web Design, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.