pdf.js/examples
Jonas Jenwald 56a8c934dd [api-major] Remove the PDFJS.disableWorker option
Despite this patch removing the `disableWorker` option itself, please note that we'll still fallback to loading the worker file(s) on the main-thread when running in environments without proper Web Worker support.

Furthermore it's still possible, even with this patch, to force the use of fake workers by manually loading the necessary file using a `<script>` tag on the main-thread.[1]
That way, the functionality of the now removed `SINGLE_FILE` build target and the resulting `build/pdf.combined.js` file can still be achieved simply by adding e.g. `<script src="build/pdf.worker.js"></script>` to the HTML (obviously with the path adjusted as needed).

Finally note that the `disableWorker` option is a performance footgun, and unfortunately many existing third-party examples actually use it without providing any sort of warning/justification.

---

[1] This approach is used in the default viewer, since certain kind of debugging may be easier if the code is running directly on the main-thread.
2018-01-31 12:52:10 +01:00
..
acroforms Adds gulp dist-install command; using pdfjs-dist package in examples. 2017-06-12 10:22:16 -05:00
browserify [api-major] Remove the PDFJS.disableWorker option 2018-01-31 12:52:10 +01:00
components Remove moznomarginboxes 2018-01-19 22:05:50 +01:00
helloworld Fix the helloworld example by setting the PDFNetworkStream class (PR 8712 follow-up) 2017-09-06 00:47:35 +08:00
learning [api-major] Remove the PDFJS.disableWorker option 2018-01-31 12:52:10 +01:00
mobile-viewer Fixed a javascript error in the mobile viewer example that prevented an alert from being displayed 2018-01-16 15:36:54 -06:00
node Restore the btoa/atob polyfills for Node.js 2018-01-13 01:31:05 +01:00
svgviewer Added missing network stream for svgviewer example 2017-11-13 19:43:30 +00:00
text-only Adds gulp dist-install command; using pdfjs-dist package in examples. 2017-06-12 10:22:16 -05:00
webpack [api-major] Remove the PDFJS.disableWorker option 2018-01-31 12:52:10 +01:00