Skip to content
Wrapper for HTML5 Web Workers to allow much simpler usage.
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


jQuery-Parallel plugin for jQuery >=1.5.
Jonathan Cardy, 15 March 2010

	function doSomeWork(args){

	$.work(doSomeWork, { a:1, b:100 }).done(function(result){

Note that this will only be properly useful in browsers that support HTML5 Web Workers, and even though it will fall back to the UI thread in unsupported browsers, it won't improve performance. It'll probably make it worse.

In's a bit of fun and a proof of concept.

You can read some usage examples here:
or in the example.html file.

Since the $.work function returns a Deferred object, have a look at the Deferred API on the jQuery website:
Something went wrong with that request. Please try again.