-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Embed a .wasm file for the jpeg2000 decoder in order to reduce the bundle size #17950
Comments
I might be misunderstanding the intent here, however having a separate file seems quite unfortunate given all the ways that the general library can be used:
Also, requiring third-party users to bundle an additional file will likely lead to a support "challenge"... I'm assuming that the current file-size issue is related to the fact that Base64 is a very inefficient data format?
|
The current
and then Firefox is unhappy with @Snuffleupagus, maybe I wrongly understood what you proposed but I've the impress that it's almost what it's currently done (I mean embedding the wasm array as a base64 string in openjpeg.js). At least in the Firefox case it'd help to win 70Kb. |
My idea would add a |
But having a string |
Quite possibly yes, I've not really thought a lot about this. Hence me saying that it probably was a stupid idea :-)
Yes, if we use this multi-file approach that "must" be limited to the Firefox PDF Viewer to avoid a barrage of issues elsewhere. |
For reference:
#17946 (comment)
The text was updated successfully, but these errors were encountered: