-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
move confirm with speech synthesis #16398
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
Conversation
| import { throttle } from 'common/timing'; | ||
| import { defined, charToRole } from 'common'; | ||
| import { defined } from 'common'; | ||
| import { speakable } from 'chess/sanWriter'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't that make all pages depend on chessops?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it shouldn't, because it's not grabbing from the 'chess' barrel like it was before. sanWriter only imports types from chessops.
but it's always possible esbuild has decided to bundle them together (unlikely). i will check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, chessops is not loaded on site (sanWriter is clean).
i did discover it is still loaded by round/ctrl courtesy of keyboardMove dependency - that could be fixed by separating keyboardMove's load stub from initModule. having them in the same bundle defeats the purpose.
on the other hand - meh, it's 37k and with cache disabled, we are only sending around 230 kb (compressed) over the wire total with rounds - and that includes i18n, fonts, and piece css,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was only one function bringing it into chess barrel. removed that and it's no longer fetched in rounds.
now it's only loaded by analysis, puzzles, insights, learn, nvui, storm, racer, keyboardMove, voice, editor, chart, and dgt.
…opied over via sync
…d warning to grammars
speak SAN followed by "confirm?" when both are enabled