keyboard-navigation: The Bits Everyone Gets Wrong — Performance article on keyboard-navigation

keyboard-navigation: The Bits Everyone Gets Wrong

Covers the subtle behaviours that pass every test and then break in production. Ends with what we would do differently today.

The documentation is accurate, which is not the same as being useful. It tells you what the function does. It does not tell you when reaching for it is a mistake, and that is the part you need.

The thing nobody tells you about keyboard-navigation is that the specification is short and the implementation history is not. Every behaviour you rely on was added for a reason that no longer applies to your code.

Performance work is mostly the discipline of removing work. The hard part is not the profile — it is convincing everyone that the problem is worth solving before you have solved it.