O'Reilly logo

Learn HTML5 and JavaScript for iOS by Scott Preston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required