Skip to content

Unclickable buttons while WASM module loads - #15

Open
HeCorr wants to merge 3 commits into
MarinX:mainfrom
HeCorr:wasm-loading
Open

Unclickable buttons while WASM module loads#15
HeCorr wants to merge 3 commits into
MarinX:mainfrom
HeCorr:wasm-loading

Conversation

@HeCorr

@HeCorr HeCorr commented May 12, 2026

Copy link
Copy Markdown
Contributor

Closes #14.

This PR temporarily disables all submit buttons until the WASM module finishes loading to prevent some issues, also changing the buttons' text to indicate that.

image

HeCorr added 2 commits May 11, 2026 22:08
decided to do it all in JS land not to pollute the HTML file too much. tho maybe I should at least leave them disabled there in case the JS file itself takes a bit to load on REALLY slow connections.
@HeCorr

HeCorr commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

Oops, I had completely forgotten about this PR. @MarinX any thoughts on it's current state?

using a very ugly css trick to change the button text while it has the `wasm-init` class, which gets removed when the module is initialized. buttons also start disabled now.
@HeCorr

HeCorr commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Okay that is significantly better. Ready to be reviewed.

@HeCorr
HeCorr marked this pull request as ready for review August 12, 2026 02:04
@MarinX

MarinX commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Thanks for PR.
Going to check it out and let you know :)

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.

No indicator that the WASM module is still loading

2 participants