Angular SSR: The Good, the Bad and the Ugly
summary
Experience comes from SAP Spartacus front ends and Node.js SSR; claim: SSR speeds initial paint but becomes slower than CSR without caching. Concrete problems: interactivity gap (buttons visible before JS hydrates), cache validity and warming, memory leaks from shared server state, and cumulative layout shift from JS-driven responsiveness. Concrete fixes: use transfer state in Angular, prefer CSS media queries, lazy-load and shrink bundles, selectively disable SSR for dynamic parts, wrap/window and timer access, use renderer2 and unsubscribe services (ngOnDestroy).
AI-written summary · about
chapters (8)
- 0:00Introduction and speaker intro
- 1:59Good: SEO and performance benefits
- 4:05Bad: Performance without caching
- 6:53Bad: SSR limitations and challenges
- 10:05Bad: Code differences between SSR and CSR
- 14:18Ugly: Interactivity gap and flickering
- 19:37Ugly: Cumulative layout shift issues
- 20:18Conclusion and full-stack developers
