Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to Work the Web with Web Workers

Trezy
August 02, 2019

How to Work the Web with Web Workers

Javascript is a single-threaded language, but it doesn't have to be.

Web Workers allow us to offload heavy operations from the UI thread, yet they're often neglected for anything beyond handling offline web apps. The capacity that they hold for transforming the way we write code in Javascript is huge! I'll dive into how Web Workers can be used to speed up page loads, offload time-consuming calculations, restore magic to our lives, and make a little video game character jump around on the screen. Boing boing.

Trezy

August 02, 2019
Tweet

Other Decks in Technology

Transcript

  1. I’m Trezy? • Over a decade as a Software Engineer

    ! • I like CSS • I like JavaScript • I talk a lot • I like Web Workers
  2. –Alex “Of course Trezy's talk is about web workers. If

    he wasn't already married to Meg, the man would marry a web worker.”
  3. What’s a Web Worker? A JavaScript script that runs in

    the background, independent of user interface scripts. Web Workers can utilize multi-core processors to enable JavaScript to be a
 multi-threaded language.
  4. Recap Time! • It’s how awesome Web Workers are •

    Web Workers have more support than Dr. Scholl • JavaScript is no longer single-threaded • You’re all going to leave here and start using Web Workers right away (mostly)
  5. Thanks and Stuff ❤ ❤ ❤ ❤ ❤ ❤ ❤

    ❤ ❤ ❤ ❤ Twitter: TrezyCodes Twitch: TrezyCodes Instagram: TrezyCodes LinkedIn: /in/trezy Website: trezy.com