Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This file demonstrate using web worker to compress the data at frontend side
// URL of the worker file to load
var workerUrl = '/dist/worker.js';
$.ajax({
url: workerUrl,
dataType: 'text',
success: function (data) {
// data has the file content
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.