C H A P T E R 7
Creating Responsive Web Apps
There are two approaches to targeting multiple platforms with a web app. The first is to create a different version of the app for each kind of device you want to target: desktop, smartphone, tablet, and so on. I’ll give you some examples of how to do this in Chapter 8.
The other approach, and the topic of this chapter, is to create a responsive web app, which simply means that the web app adapts to the capabilities of the device it is running on. I like this approach because it doesn’t draw a hard distinction between mobile and “normal” devices.
This is important because the capabilities of smartphones, tablets, and desktops blur together. Many mobile browsers already have good HTML5 support, and ...
Get Pro JavaScript for Web Apps now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.