You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
The text was updated successfully, but these errors were encountered: