Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading worker script pdf.worker.js breaks minified clients. #5650

Closed
opyate opened this issue Jan 15, 2015 · 1 comment
Closed

Loading worker script pdf.worker.js breaks minified clients. #5650

opyate opened this issue Jan 15, 2015 · 1 comment

Comments

@opyate
Copy link

opyate commented Jan 15, 2015

See

return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');

return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');

(7586d77 latest at time of writing)

Minified builds compact all JS into one file, e.g. vendor.js, and during testing:

GET http://example.org/scripts/198c2df0.vendor.worker.js 404 (Not Found)

Since pdf.js is not on a CDN (see #5490) the suggested workaround seems to be disabling the worker, which impedes performance.

@opyate opyate changed the title Loading worker scripts breaks minified clients. Loading worker script pdf.worker.js breaks minified clients. Jan 15, 2015
@opyate
Copy link
Author

opyate commented Jan 15, 2015

@opyate opyate closed this as completed Jan 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant