Closed GuillaumeLeclerc closed 5 years ago
I implemented this on a fork https://github.com/Stuk/jszip-utils/pull/19 and submitted it as a PR.
Is not there any solution for this yet?
Just a bit of a delay. I've reviewed the PR.
Released as version v0.1.0.
Pass an options object with a progress
callback:
JSZipUtils.getBinaryContent("ref/amount.txt", {
progress: function(e) {
console.log(e.percent + "% loaded");
},
callback: function (err, data) {
// ...
}
});
The XHR object allow you to know the progess of the download. It might be a good thing to be able to access it using this.