Getting Out Of Our Users’ Way: Less Jank With Web Workers

A presentation at #PerfMatters by Trent Willis

Does your web app make lots of data requests? Have you ever dealt with large datasets or slow data processing in your app? If so, you’re not alone.

These issues, and others like them, often lead to poor user experiences as our applications frequently show loading spinners, jank, or even freeze completely. These experiences are all too common on the web, but we have a solution: Web Workers.

Web Workers promise to help us build fast, responsive, and robust applications by getting heavy, JavaScript-intensive work off the main thread of the browser. But, the APIs for working with them leave much to be desired. In this talk, we’ll learn useful patterns for working with Web Workers and discover effective ways to communicate between workers, handle complex data processing off the main thread, and test and debug them, so that we can stop getting in our users’ way!

Video

Resources

The following resources were mentioned during the presentation or are useful additional information.