Created
February 28, 2018 13:54
-
-
Save hemkaran/903cd4bdbad9026d7597d51098861921 to your computer and use it in GitHub Desktop.
This file demonstrate using web worker to compress the data at frontend side
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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