Engrain by ByteRush

MC.03.02 SeniorCore — asked often

Autocomplete: accessibility, caching and polish

Comes up in: Machine coding, Frontend system design, Web fundamentals

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • combobox ARIA pattern (aria-activedescendant, listbox, aria-expanded)
  • client cache (Map by query, LRU)
  • min chars
  • IME composition
  • recent searches
  • virtualised long lists
  • senior follow-ups (offline, i18n, server-side ranking)

Words you will know

comboboxresult cache

What you will practise

  • add a11y + cache
  • answer 6 follow-ups

Interview questions this answers

  • How would you cache results? When do you invalidate?