O'Reilly logo

Pro JavaScript for Web Apps by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required