HTML5 Web Workers

Article and Sample App by John Robinson.

This sample app allows you to run a long running job either within the main thread or within a webworker thread. Running this on the main thread will result in the UI becoming non-responsive until the function completes. Running this same job within a webworker allows the main thread to remain available for interaction even as the longJob function is executed in parallel.

Notice that the clock continues to run while this is progress.

Notice that the clock stops running while this is in progress