From the course: JavaScript: Web Workers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

WorkerDOM project

WorkerDOM project - JavaScript Tutorial

From the course: JavaScript: Web Workers

Start my 1-month free trial

WorkerDOM project

- [Narrator] The AMP Project has started a few years ago as the Accelerated Mobile Project, created by Google. It's an open solution, it's like a subset of html to create the fastest possible documents or websites originally for mobile devices, but now it's multi-platform. To make the content really fast, no custom JavaScript code is allowed. So we cannot write our own custom code. The library has some JavaScript code, but we cannot create our own interactive websites using our own code. But, there is an experiment going on inside the AMP Project that will let us execute code, but we need a worker. So, we are going to provide a trial file and the AMP Project will load our trial file in a thread. So that's how they will guarantee that we are not going to mess with their performance. The problem is that if we are in a worker, we don't have access to the DOM. And typically, we want to do that, we want to evaluate the form, we want to do some kind of interactivity in our document. So…

Contents