Web Workers is a good way to improve the performance of your web applications. It’s not a new HTML5 API but for some reason not too many front end developers are using it. This short episode will give you the intro to why and how you can leverage this simple and powerful API to enter the world of multi threads in the browser.
We will talk about Chrome devtools and how to use them in order to debug workers. How to detect if the browser support it and of course a real case of using workers to calculate some round numbers like: PI.
Misc
- How to work with transferable objects and web workers so you will be able to share ‘big data/big objects’ with the worker in the most efficient way.
- A Web Workers Tutorial that I wrote here in the past.
Discover more from Ido Green
Subscribe to get the latest posts sent to your email.
Pingback: Web Workers Intro in Google Developers Live Israel | txeet