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

typo #35868

Closed
xmxdx opened this issue Sep 13, 2024 · 1 comment · Fixed by #35872
Closed

typo #35868

xmxdx opened this issue Sep 13, 2024 · 1 comment · Fixed by #35872
Labels
Content:Glossary Glossary entries good first issue A good issue for newcomers to get started with.

Comments

@xmxdx
Copy link

xmxdx commented Sep 13, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Glossary/Throttle

What specific section or headline is this issue about?

line 13 of the files/en-us/glossary/throttle/index.md file

What information was incorrect, unhelpful, or incomplete?

i suppose first occurrence of "debouncing" is incorrect

What did you expect to see?

expected to see "throttling" instead

Do you have any supporting links, references, or citations?

A typical use case of debouncing is when synchronizing with another constantly-updating state. Consider a function `onScrolled`, which listens for the [`scroll`](/en-US/docs/Web/API/Document/scroll_event) event. The `scroll` event may fire as often as every pixel scrolled, so the function will be called in very short intervals. If `onScrolled` is computationally expensive, earlier invocations might block later invocations from happening on time, or block other things from executing in the meantime, leading to a noticeable {{glossary("jank")}}. In this case, we can throttle `onScrolled`, such that it can only be called at most once every 10 milliseconds:

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@xmxdx xmxdx added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Sep 13, 2024
@github-actions github-actions bot added the Content:Glossary Glossary entries label Sep 13, 2024
@Josh-Cena Josh-Cena added good first issue A good issue for newcomers to get started with. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Sep 13, 2024
@mayurr7
Copy link
Contributor

mayurr7 commented Sep 13, 2024

/attempt #35868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Glossary Glossary entries good first issue A good issue for newcomers to get started with.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants