C H A P T E R 14
Advanced Topics
This chapter is pretty much a catch-all for the HTML5 APIs I didn't talk about in much detail in Chapter 2 (HTML5 in short). It touches on some useful technology, but perhaps not technology you'll use in the first version of your mobile web app.
The heart of this chapter is about the communications API of HTML5 with topics including cross-domain communication, server-sent events, and web sockets. This gives you the ability to send and receive messages within your web app without the constant polling that's typically used via setInterval()
or setTimeout()
.
I then talk about multithreading via web workers and the additional management of your history object with some new methods and events.
Cross-Domain Communication ...
Get Learn HTML5 and JavaScript for iOS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.