mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Adds Streams API support for networking task of PDF.js project.
network.js file moved to main thread and `PDFNetworkStream` implemented at worker thread, that is used to ask for data whenever worker needs.
This commit is contained in:
parent
bd8c12119a
commit
109106794d
9 changed files with 481 additions and 238 deletions
|
@ -28,7 +28,6 @@ importScripts('./shared/compatibility.js');
|
|||
importScripts('../node_modules/systemjs/dist/system.js');
|
||||
importScripts('../systemjs.config.js');
|
||||
|
||||
Promise.all([SystemJS.import('pdfjs/core/network'),
|
||||
SystemJS.import('pdfjs/core/worker')]).then(function () {
|
||||
SystemJS.import('pdfjs/core/worker').then(function () {
|
||||
// Worker is loaded at this point.
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue