WEB WORKERS made my code over 100x faster (almost ZERO blocking time) @JoshuaMorony
WEB WORKERS made my code over 100x faster (almost ZERO blocking time)  @JoshuaMorony
Uploaded December 2024 | Updated November 2026, 3 hours ago
My game dev channel: youtube.com/@TypedPixels

Web workers provide a way to get some sort of multi threading capabilities in JavaScript. They have limitations, but in the right circumstances they can lead to huge performance improvements. In this video, I show how I offload a ton of heavy computations to a worker thread to decrease a large amount of blocking time to almost zero.

More on "wave function collapse" algorithm: youtube.com/watch?v=zE1Jbh8b0BM

Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076

My game dev channel: youtube.com/@TypedPixels

MY GEAR:
Keyboard: https://adm42.dev/?ref=3
Neovim setup: github.com/joshuamorony/lazyvim
Animations: motioncanvas.io

0:00 Introduction
0:19 The problem
1:15 Why web workers
1:58 Setting up a web worker
3:15 Using web workers
3:51 Web workers and DOM access
4:58 The results

#angular #javascript #webworker

- More tutorials: modernangular.com
WEB WORKERS made my code over 100x faster (almost ZERO blocking time)I finished my 3D Angular + Signals gameThe easier way to code Angular appsWhy use OnPush in Angular? Not for performance...Take charge of your Nx workspace (adding Ionic to an Angular app manually)What building with TDD actually looks likeThis is why PROFILING is critical for high performance JavaScriptHow to test like a real API devThe Biggest Misconception of PROMISES vs OBSERVABLESHow to handle modals declaratively/reactively with Angular (and is it any better?)Is complex RxJS still useful with Angular signals?2 hours to build this!? Is TDD in Angular really worth it?
Joshua Morony |

WEB WORKERS made my code over 100x faster (almost ZERO blocking time)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER