Scott Logic Ltd

Archive For "Web Workers" Tag

Web Workers Part 3: Creating a Generic Worker

Jonathan Cardy, February 24th, 2011

In the previous post we set up a Web Worker helper function that allowed us to create a worker file, and call it using code like this: $.work({file: ‘primes.js’, args: { from: 1, to: 100000 }}).then(function(data) { //Worker completed successfully console.log(data); }); Now, wouldn’t it be nice if you didn’t even have to write the [...]

Read More


Web Workers Part 2: Using jQuery Deferred

Jonathan Cardy, February 18th, 2011

The .NET Task Parallel Library is a great advance in parallel programming for the .NET framework. It lets us easily run an anonymous method in another thread without any worries about the actual thread creation. A Task object wraps up a piece of parallel code, and provides a notification of when it’s complete. We can [...]

Read More


Web Workers Part 1: Performance

Jonathan Cardy, February 18th, 2011

The Web Workers API is currently a draft HTML5 specification which defines an API for running JavaScript in a background thread. In this series of blog posts I am going to investigate the practical use of Web Workers. In this first blog post I want to look at the performance of HTML 5 Web Workers [...]

Read More

© 2013 Scott Logic Ltd. All Rights Reserved.