Hour 19. WebSockets, Web Workers, and Files

What You’ll Learn in This Hour:

• How to use WebSockets to speed up web communication

• Why WebSockets aren’t fully supported

• How to thread JavaScript with Web Workers

• How to use the File API to connect web pages to user files

• How to build a drag-and-drop file upload tool

The WebSockets, Web Workers, and File APIs are useful additions to HTML5 because they give you resources such as asynchronous connections, as well as enable you to run scripts in the background and work with files in your web applications. These three APIs offer a lot of back-end functionality that most applications use.

This hour you’ll learn about what these three APIs do for web applications, some explanations of how to ...

Get Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours 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.