Duration: 15:24 min
Summary: In this lesson, we will learn how to work with web worker and XML. JavaScript is a single-threaded environment, meaning multiple scripts cannot run at the same time. The Web Workers specification defines an API for spawning background scripts in your web application. We will discuss an example of working with web worker and see how the page will send a message to the worker, and how the worker will send this message back after a specific delay. Then, we will discuss how to use the XMLHttpRequest to open an XML file and read its content.