Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
HTML5 and JavaScript Web Apps
SPECIAL OFFER: Upgrade this ebook with O’Reilly
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
1. Client-Side Architecture
Before HTML5
More Code on the Client
The Browser as a Platform
Conclusion
2. The Mobile Web
Mobile First
Deciding What to Support
Mobile Web Browsers
WebKit
Mobile Safari (iOS6)
Android
Mobile Firefox
Opera Mobile
Internet Explorer Mobile
Mobile Browser Market Share
Browser Grading
HTML5 in the Enterprise
Graceful Degradation
QA and Device Testing
3. Building for the Mobile Web
Mobile Web Look and Feel
The Look
The Feel
Hardware acceleration
Interactions and Transitions
Sliding
Flipping
Rotating
Debugging Hardware Acceleration
Using Safari
Using Chrome
Memory Consumption
Fetching and Caching
Network Type Detection and Handling
Frameworks and Approaches
Single Page
jQuery Mobile
jQTouch
No Page Structure
xui
100% JavaScript Driven
Sencha Touch
Wink Toolkit
The-M-Project
Mobile Debugging
weinre
Adobe Shadow
Opera Remote Debugging
4. The Desktop Web
The Browser as a Platform
Client Versus Server HTML Generation
Device and Feature Detection
Client-Side Feature Detection
Client-Side userAgent Detection
Server-Side userAgent Detection
Compression
GZIP Versus DEFLATE
Minification
Bringing it all together
JavaScript MVC Frameworks and the Server
The Top Five Frameworks
Backbone
Backbone server synchronization
Backbone and legacy servers
Ember
Ember server synchronization
Angular
Angular server synchronization
Batman
Batman server synchronization
Knockout
Knockout server synchronization
5. WebSockets
Building the Stack
On the Server, Behind the Scenes
Programming Models
Relaying Events from the Server to the Browser
Using the new and shiny
Binary Data Over WebSockets
Managing Proxies
Building your own
Frameworks
Vert.x
Socket.IO
Atmosphere
6. Optimizing with Web Storage
The Storage API
The StorageEvent API
What’s Racy and What’s Not?
Using JSON to Encode and Decode
Security and Private Browsing
Security
Private Browsing
Who’s Using Web Storage?
Using Web Storage Today
Enable automatic sign-in
Caching with a timestamp
Syncing Data from the Client Side
Database Syncing with Backbone
Using Web Storage in Any Browser
Frameworks
LawnChair
persistence.js
7. Geolocation
A Practical Use Case: User Tracking
A Practical Use Case: Reverse Geocoding
Frameworks
geo-location-javascript
Webshims lib
8. Device Orientation API
A Practical Use Case: Scrolling with Device Movement
9. Web Workers
A Practical Use Case: Pooling and Parallelizing Jobs
Other Uses
Index
About the Author
Colophon
SPECIAL OFFER: Upgrade this ebook with O’Reilly
Copyright
← Prev
Back
Next →
← Prev
Back
Next →