You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting, that sounds awesome. If someone is willing to work on this, feel free to submit a pull request. We must be sure to remain compatible for old browsers, so we probably need a fallback to XHR or a polyfill for fetch() to do so.
Right now, pdf.js uses XMLHttpRequest (XHR) for fetching the PDF, see https://github.com/mozilla/pdf.js/blob/master/src/core/network.js.
With the recent development of the Fetch API (released in Chrome 42, Firefox 39, Opera 30), a clean replacement for XHR is now in place; see
It can easily be detected if the current browser has
fetch()
, so this indeed looks like a interesting alternative.The text was updated successfully, but these errors were encountered: