Skip to content

Fix #2160 - Add m/py:progress events #116

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

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Fix #2160 - Add m/py:progress events #116

merged 1 commit into from
Sep 12, 2024

Conversation

WebReflection
Copy link
Contributor

@WebReflection WebReflection commented Sep 12, 2024

This MR fixes pyscript/pyscript#2160 by implementing tons of progress event, namely py:progress and mpy:progress so that the bootstrap dance can easily provide some visual feedback around what's going on by simply adding an event listener on the page that listens to py:progress (or mpy:progress) custom events.

All events, except those coming from miropip, have a Loading ... start and a Loaded ... end where Loading Pyodide wraps around all operations until Loaded Pyodide detail is provided.

Events are triggered from both main thread and workers.

@WebReflection WebReflection merged commit 91a2770 into main Sep 12, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant