HTML5 and JavaScript Web Apps

Bridging the Gap Between the Web and the Mobile Web

Af Wesley Hales
Detaljer O'Reilly Media, Incorporated
ISBN 9781449320515
Sprog Engelsk
Vælg mellem
Pris 210,00 kr.
Paperback

Ikke på lager

Ikke på lager. Bestil nu og få den leveret om ca. 12 hverdage

This hands-on book looks past the hype and buzzwords surrounding HTML5 and gives you a conservative and practical approach to using HTML5, JavaScript MVC frameworks, and the latest W3C specifications. You'll quickly master how to build mobile and desktop web apps that are widely supported across all major web browsers and devices.

Even though Web Storage, Web Workers, Geolocation, Device Orientation, and WebSockets have been covered many times in the past, it is often from a very high or basic level. This book goes into the trenches to review actual use cases for each of these APIs and gives real-world examples on how to use each one. If you're familiar with JavaScript, CSS and HTML basics and are ready to start piecing together the architecture of HTML5, then this book is for you.

Assemble a coherent architectural whole from HTML5's complex collection of parts Gain a clear understanding of client-side architecture and the "mobile first" approach Design, create, and tune eye-catching and robust mobile web apps Explore how the top five JavaScript MVC frameworks interact with the server Learn best practices for setting up a raw WebSocket server Examine how sites such as Google, Twitter, and Amazon store data on the client Use real-world methods for applying geolocation, and learn the pitfalls of various implementations Process images and other data in the background with Web Workers

Preface; Who This Book Is For; Who This Book Is Not For; What You'll Learn; About the Code; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments;
Chapter 1: Client-Side Architecture;
1.1 Before HTML5;
1.2 More Code on the Client;
1.3 The Browser as a Platform;
1.4 Conclusion;
Chapter 2: The Mobile Web;
2.1 Mobile First;
2.2 Deciding What to Support;
2.3 Mobile Browser Market Share;
2.4 Browser Grading;
2.5 HTML5 in the Enterprise;
2.6 QA and Device Testing;
Chapter 3: Building for the Mobile Web;
3.1 Mobile Web Look and Feel;
3.2 Interactions and Transitions;
3.3 Fetching and Caching;
3.4 Network Type Detection and Handling;
3.5 Frameworks and Approaches;
Chapter 4: The Desktop Web;
4.1 The Browser as a Platform;
4.2 Device and Feature Detection;
4.3 Compression;
4.4 JavaScript MVC Frameworks and the Server;
Chapter 5: WebSockets;
5.1 Building the Stack;
5.2 Programming Models;
Chapter 6: Optimizing with Web Storage;
6.1 The Storage API;
6.2 The StorageEvent API;
6.3 Using JSON to Encode and Decode;
6.4 Security and Private Browsing;
6.5 Who's Using Web Storage?;
6.6 Syncing Data from the Client Side;
6.7 Using Web Storage in Any Browser;
6.8 Frameworks;
Chapter 7: Geolocation;
7.1 A Practical Use Case: User Tracking;
7.2 A Practical Use Case: Reverse Geocoding;
7.3 Frameworks;
Chapter 8: Device Orientation API;
8.1 A Practical Use Case: Scrolling with Device Movement;
Chapter 9: Web Workers;
9.1 A Practical Use Case: Pooling and Parallelizing Jobs;Colophon;