From f9befa189b0cbb73a7132120d42406cd7a4c0219 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Thu, 29 May 2014 20:34:20 -0500 Subject: [PATCH] Disables worker if XHR does not support arraybuffer --- web/compatibility.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/compatibility.js b/web/compatibility.js index 8b687b607..98d2dcb95 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -163,6 +163,10 @@ if (typeof PDFJS === 'undefined') { if ('responseType' in xhr) { return; } + + // The worker will be using XHR, so we can save time and disable worker. + PDFJS.disableWorker = true; + // Support: IE9 if (typeof VBArray !== 'undefined') { Object.defineProperty(xhrPrototype, 'response', {