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

Moodle Plugin Doubt #4440

Closed
registerme1963 opened this issue Apr 9, 2024 · 2 comments
Closed

Moodle Plugin Doubt #4440

registerme1963 opened this issue Apr 9, 2024 · 2 comments
Assignees

Comments

@registerme1963
Copy link

registerme1963 commented Apr 9, 2024

I successfully created Ketcher standalone mode plugin for Moodle 4.3 TinyMCE editor. I see the main##.js is about 20MB. Since my primary interest is drawing chemical structures, is it possible to load relevant chunk from the main.js. Something like <src="main.js?drawonly">
How does the 20MB file is loaded in slow network? Can somebody explain me?
thanks and regards
rV

@rrodionov91
Copy link
Collaborator

Hi @registerme1963

Thank you for raising this issue.

Currently ketcher standalone bundle size is about 20MB because it contains indigo wasm build which includes binary data.
We are currently working on separation binary part to different file and loading it asynchronously after ketcher initialization. (related indigo ticket epam/Indigo#877).

Also there is an option to use ketcher remote. The size of bundle there is 4.4MB currently. However you will need to run indigo remote somewhere on your environment.

Do you use gzip compression on your server side? It should reduce loading time significally.

@rrodionov91 rrodionov91 self-assigned this Apr 11, 2024
@registerme1963
Copy link
Author

Thank you. Gzip is enabled. Waiting for the new version.

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

2 participants