Chapter 7. Mobile Web Apps in the Real World: Super mobile web apps

The mobile web feels like that gifted kid in the class. You know, kind of fascinating, capable of amazing things, but also a mysterious, unpredictable troublemaker. We’ve tried to keep its hyperactive genius in check by being mindful of constraints and establishing boundaries, but now it’s time to capitalize on some of the mobile web’s natural talents. We can use progressive enhancement to spruce up the interface in more precocious browsers and transform erratic connectivity from a burden to a feature by crafting a thoughtful offline mode. And we can get at the essence of mobility by using geolocation. Let’s go make this a super mobile web app!
It looks nice...
Now that we’re done with phase 1, the Tartanator has that mobile-web-app sheen.

It talks the talk...
There are buttons. And navbars. And cool page transitions. We’re loading content selectively with AJAX. We’re reducing bandwidth, requests, and JavaScript DOM processing. And jQuery Mobile is helping to make our HTML5 form elements look and feel mobile friendly.

Take heart. It may seem like building phase 1 was full of sound and fury, signifying nothing. But we’ve laid ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access