ANSHIKA-26 / WordWise

Blogging website
https://anshika-26.github.io/WordWise/
MIT License
80 stars 340 forks source link

Proposal: Adding Debouncing Effect to SignUp page #1810

Open AbhijitMotekar99 opened 5 days ago

AbhijitMotekar99 commented 5 days ago

Is your feature request related to a problem? Please describe. When users type quickly on the registration form, input validations or API calls may trigger too frequently, leading to excessive server requests or validations. This behavior can create unnecessary load, slow down the page, and negatively impact the user experience, especially if multiple validations are happening simultaneously as the user fills in fields.

Describe the solution you'd like Implement a debouncing function to limit the frequency of validation or API calls on the registration form. For example, when a user types in the username field, debouncing can ensure that validation only occurs after the user pauses typing, reducing the number of requests sent. The debouncing can be set to trigger after a certain delay (e.g., 300ms), improving the form's responsiveness and performance.

Describe alternatives you've considered An alternative could be to use a throttling mechanism instead of debouncing. However, throttling controls the number of times a function is executed over time, which might not be as effective here, as we want to wait until the user pauses typing before validating. Debouncing better suits this use case for performance and user experience.

Additional context This feature could be implemented on various input fields, such as username or email, where real-time validation is critical but should be controlled. Debouncing will prevent the system from overwhelming the server with validation calls and help users complete the registration smoothly. This update will also improve the form’s performance and responsiveness.

github-actions[bot] commented 5 days ago

Thanks @AbhijitMotekar99 for raising this issue! We'll look into it.We hope you have made sure that a similar issue doesnt exist , if it does, kindly ask to be assigned on that issue

amin-xiv commented 5 days ago

So are you hoping to get assigned to this issue, or you just raised it as an issue? thank you.

AbhijitMotekar99 commented 5 days ago

Hey @amin-xiv Assign it to me, I want to work on this issue.

amin-xiv commented 5 days ago

@AbhijitMotekar99 Hi, I am not a maintainer lol, I was just asking if you are just reporting it for someone to fix it or you would like to work on it, because I also wanted to contribute, but since you want no problem.

AbhijitMotekar99 commented 5 days ago

No, I want to work on this

amin-xiv commented 5 days ago

@AbhijitMotekar99 go ahead, good luck with it!