Publié le dans JavaScript

Web Workers


JavaScript is a multi-threaded and compiled language. Web Workers doesn't have access to the DOM API. Making UI changes in the Worker is not a good idea anyways. The cost needed for the communication between threads may be too high.

Main thread = UI only? 💛 As often as possible.

Image manipulation exemple

  • Pimiö : JavaScript Analog Film Simulation based on HaldCLUT (GitHub)
  • Worker Manager (used in Pimiö)