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

Investigate ways to improve performance/responsiveness #22

Open
waldyrious opened this issue Dec 18, 2022 · 1 comment
Open

Investigate ways to improve performance/responsiveness #22

waldyrious opened this issue Dec 18, 2022 · 1 comment
Labels
infrastructure Internal reworking without affecting available functionality. UI/UX Changes that affect the design or user experience of the project.
Milestone

Comments

@waldyrious
Copy link
Owner

There's currently a slight delay until the page is ready. It might be worth researching whether Pyodide allows pre-bundling modules so that they are loaded at the same time as the Pyodide script itself and not when the Python code is executed.

In any case, there is likely to always be a delay given the complexity of setting up a Python interpreter in the browser, so better UX for while the page isn't ready could also be a good idea.

@waldyrious waldyrious added infrastructure Internal reworking without affecting available functionality. UI/UX Changes that affect the design or user experience of the project. labels Dec 18, 2022
@waldyrious waldyrious added this to the 2.0: QOL milestone May 9, 2023
@waldyrious
Copy link
Owner Author

One way to improve the page's responsiveness is to activate the input form as soon as JavaScript and WebAssembly support is detected, and only delay the activation of the convert button (or the start of auto-conversion, once #16 is done) to when Pyodide is ready. I have started playing with this locally, but need to find the time to clean up the changes and submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Internal reworking without affecting available functionality. UI/UX Changes that affect the design or user experience of the project.
Projects
None yet
Development

No branches or pull requests

1 participant