3 ms·
Live search pollutes the browser history with each letter typed. Otherwise - well done!
by egze 11y ago
Live search pollutes the browser history with each letter typed. Otherwise - well done!
- dansingerman 11y agoYou're right, I'd like to address that in some sort of sensible way. This is just an MVP right now, but thanks for your suggestion (which I agree with)
- nacs 11y agoAdding a small delay after someone types a letter and before the API is hit would improve it a bit in the meantime. Also use history.replaceState so you don't add so many entries to the browser history. Every time I type a letter (or each time I hit backspace), the browser fires off a dozen requests for the search term and all the images for every app in the result. This is a waste of bandwidth and bogs the browser down. I'm all for interactivity but you need to take usability into account a bit.