Rendering patterns
- Static rendering - HTML are rendenred at build time, that way you can cache in CDN
- ISR
- SSR
- CSR
Core Web Vitals
- TTFB
- FCP
- TTI
- FID
- CLS
- LCP
Architecture
Application architecture:
- component model
- rendering and loading
- routing and transitions
- data/state management
Rendering and loading
Bigger javascript bundle will always means a slower performance Serverside rendering have a faster FTP
SSR:
- Performance
- SEO
- Data fetching
Tecniques:
SSR
SSR with hydration
SSR with hydration and streaming (TTFB improvement) beneficial for large websites
Progressive hydration
Pre-rendering
Client side
Rendering on the Web: Performance Implications of Application Architecture (Google I/O ’19)
Data state management
Web workers
Libs
Tools
- Dependency validation e visualization - https://www.npmjs.com/package/dependency-cruiser