Accessibility and Performance Budgets: Making Streaming Interfaces Work for Everyone
Streaming output is a disaster for screen readers, and pointing a live region at the streaming element is both the most common and the most wrong fix. Solve it with sentence-level announcement, set a performance budget for the whole workbench, and package seven days of work into a portfolio project.
Today's Goals
- Explain why pointing a live region at a streaming element fails, and implement sentence-level announcement instead
- Set and measure a performance budget, and say which metrics matter most for agent interfaces
- Complete keyboard access and focus management so the approval flow works without a mouse
The last day, covering two things we have been deferring. When you finish, scroll back up and tick the three goals off.
Plain-Language Walkthrough
Captions for those who cannot hear: not by retyping the sentence every word
Conferences usually provide captions alongside interpretation, for deaf and hard-of-hearing attendees.
Imagine a captioner who works like this: every time the interpreter says a new word, they retype the entire sentence from the beginning. What happens to the people reading? They can never finish a sentence — halfway through, it is wiped and restarted.
That is precisely what a streaming interface does to a screen reader if you take the most natural approach: adding aria-live to the element rendering the stream.
The core conclusion of today is that the most natural approach is wrong.
Interview questions
Why is pointing a live region at the streaming element wrong, and what should you do instead?为什么把实时区域直接指向流式渲染的元素是错的?正确做法是什么?
Common in ChinaCommon overseasDeep dive#accessibility#aria-live#streaming🔒 Unlock this chapter to see the answer keys.
What performance budgets would you set for an agent chat interface, and how would you measure each?你会给一个 Agent 聊天界面设哪几条性能预算?分别怎么测?
Common in ChinaCommon overseasIntermediate#performance#metrics#agent-ui🔒 Unlock this chapter to see the answer keys.
When a new message streams in, should keyboard focus follow it? Justify your answer.新消息流式到达时,键盘焦点应该跟着走吗?说出你的判断和理由。
Common in ChinaCommon overseasIntermediate#accessibility#keyboard#focus-management🔒 Unlock this chapter to see the answer keys.
Your streaming UI is green across automated tests, yet users report problems with screen readers. What does that tell you?你的流式界面在自动化测试里全绿,但用户报告说屏幕阅读器上有问题。这说明什么?
Common in ChinaCommon overseasDeep dive#testing#accessibility#engineering-practice🔒 Unlock this chapter to see the answer keys.
