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 unnecessary ajax reqeusts #15

Open
abunashir opened this issue Sep 22, 2016 · 1 comment
Open

Remove unnecessary ajax reqeusts #15

abunashir opened this issue Sep 22, 2016 · 1 comment

Comments

@abunashir
Copy link
Owner

abunashir commented Sep 22, 2016

In the hotel search page when the user starts to type a destination name then the application is sending ajax request on every keyup. Which is not the efficient way as the user is not done with typing and the app keeps sending requests on every key pressed.

This can be optimized by using debounce, it will wait a certain time, and group all subsequent requests into one. In our scenario, when the user is typing the destination name and stopped for a certain time(300-500ms) only then it will send an ajax request. This will remove unnecessary API request and provide a better user experiences.

References:

@nhaberl
Copy link

nhaberl commented May 5, 2017

would be great if you could deliver a ready to use sample :-)

Repository owner deleted a comment from roneyfraga Mar 18, 2024
Repository owner deleted a comment from roneyfraga Mar 18, 2024
Repository owner deleted a comment from roneyfraga Mar 18, 2024
@github-staff github-staff deleted a comment from wenxingxing Mar 22, 2024
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

No branches or pull requests

4 participants
@abunashir @nhaberl and others