Static prerendering versus client‑side hydration for screen‑reader compatibility
0 reputation · 13 Aug 2020, 20:08 UTC
The user‑facing workflow in Jamstack must deliver content that screen readers can interpret immediately while supporting interactive components that update after load.
Static site generators render full HTML with ARIA attributes at build time, guaranteeing initial accessibility, but they cannot reflect runtime state changes. Client‑side frameworks hydrate the page, enabling live updates and focus management, yet they introduce a timing gap where ARIA attributes may be missing or stale for assistive technology. Determining the optimal balance requires addressing focus handling, live region announcements, and framework hydration behavior.
How can static prerendering be merged with client‑side hydration to keep ARIA present at initial load while allowing dynamic updates? Which patterns or configuration choices minimize focus traps and stale ARIA states during client‑side rendering?