4 ms·
Comments: 1. The focus should be on the search box when the page is loaded. 2. While typing the word "javascript", sometimes the amount of results shrinks and
by amelius 12y ago
Comments:
1. The focus should be on the search box when the page is loaded.
2. While typing the word "javascript", sometimes the amount of results shrinks and immediately increases, resulting in flickery behavior.
- peterbe 12y ago1. Why? That sample on autocompeter.com is just a sample. Consider the search widget on a page like www.peterbe.com instead. Then it shouldn't focus immediately on load. 2. I see. I think it only happens when the client-side cache is empty. And it only happens if you type very fast. I think the right solution would be to not hide too quickly. That's a very useful piece of feedback. Much appreciated!
- peterbe 12y agoThank you so much for that piece of feedback. It really did flicker. I investigated the problem and found a very good explanation for why it was happening. Solved now: https://github.com/peterbe/autocompeter/commit/a31c919c1281dc683620ef9b3a6209be3c17a2fe#diff-343723a0cb380f664aedf0dfed5c1c2fR4 https://github.com/peterbe/autocompeter/commit/a31c919c1281d...
- peterbe 12y agoWould you mind trying again? Make sure to refresh first.