Attach (reccomened) or Link to PDF file here:
Configuration:
What is the expected behavior? (add screenshot)
should load like immediately
What went wrong? (add screenshot)
load after about 10 seconds
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
N.A.
I see many changes made in web folder. Can't pinpoint the exact cause. Any ideas?
Please provide exact steps to reproduce. If you are trying to use PDF.js directly from this repo without compiling/building it via gulp generic
, then some slow down is expected.
10 seconds
It looks like the viewer is run in the development mode. 10 seconds is sounds a reasonable time to recompile es6 sources to legacy es5. Closing as answered.
I looks like the viewer is run in the development mode.
Ensure that you're using a version of PDF.js that includes PR #8364, since that should have improved load times quite a bit in development mode.
@yurydelendik indeed, I found the built files in pdf.js\build\generic\web and it works as expected.
@Snuffleupagus would keep your advice in mind when i monkey patch again ;p
Most helpful comment
It looks like the viewer is run in the development mode. 10 seconds is sounds a reasonable time to recompile es6 sources to legacy es5. Closing as answered.