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

Remove excessive word counts #2973

Merged
merged 1 commit into from
Mar 29, 2022

Conversation

AndrewKvalheim
Copy link
Member

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the upstream master branch.
  • The tests pass locally with my changes.
  • I have added tests that prove my fix is effective or that my feature works (if appropriate).
  • I have added necessary documentation (if appropriate).

Short description of what this resolves

Typing in the proposal’s abstract field gradually causes the browser to slow down and eventually become unresponsive. This is caused by duplicate event listeners being registered during every count, increasing the number of counts that take place every time the user types.

Changes proposed in this pull request

Resolves:

  - Duplicate event listeners are registered during every word count,
    increasing the number of word counts until the browser becomes
    unresponsive.
  - The word count is triggered multiple times on input due to listening
    to redundant events.
@hennevogel hennevogel merged commit 6601cb2 into openSUSE:master Mar 29, 2022
@AndrewKvalheim AndrewKvalheim deleted the word-count-events branch March 30, 2022 18:08
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.

2 participants