[Video](https://www.youtube.com/watch?v=nOEXIcMdr_g)

When JavaScript lives in a Worker, it runs in a separate thread. Thus, it can't block the browser from creating smooth user experiences! Unfortunately, since Workers can't access the DOM directly, you can't just stick your JavaScript into a Worker. Fortunately, last year, AMP introduced amp-script, a component that makes this straightforward. In this talk we chat about how to use amp-script to create your very own Workerized JS browser interactions!

Related Playlist: Day 1 → <https://goo.gle/WDL20Day1>

[Subscribe to the Chrome Developers](https://goo.gle/ChromeDevs).

Speakers: Ben Morss, Crystal Lambert

[Back to all episodes](https://web.dev/shows/)