corejavascript / corejavascript/typeahead.js
Unnecessary AJAX request sent on hint autocomplete
- Dominant language
- JavaScript
- Stars
- 968
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Description
Cross-posting https://github.com/twitter/typeahead.js/issues/1344
In this example : http://twitter.github.io/typeahead.js/examples/#remote
If I type Chi, there's 1 network request and I see 1 suggestion i.e. Chicago. Now if I hit → or Tab key to autocomplete the hint, there's another network request sent for Chicago. How can I avoid this ?
Probably related to #188 & #548
( I'll add that the reason isn't just to save on network requests. I have an app that dynamically updates the request URL and I want a better control over which requests are sent. In the above case, an automatic request is sent using a stale URL )
Contributor guide
Assessment
This issue has not been assessed yet.