Chapter 12. Conditional JavaScript

Even when you have started mobile first with your design, paid careful attention to your content, and created a true masterpiece, you still need to worry about precise interaction methods. What works for your desktop users might not work at all for your mobile users. By that same token, what works on a tablet might not work on a phone. This is where adding some conditional JavaScript can make all the difference.

Why Conditional JavaScript

When you start thinking about how users will interact with your site, you need to make sure that you are giving them the control they expect to be successful. This holds true for every element or component of your site that will offer any degree of interaction.

To help wrap ...

Get Responsive Mobile Design: Designing for Every Device now with the O’Reilly learning platform.

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