Partial Pre-rendering
Hype or Innovation?
Kawtar CHOUBARI
@choubari_
@ React Paris
SSG
Request web page
HTML, CSS, JS
Render to HTML Markup
at build time
CDN
SSR
Request web page
Send HTML, CSS and JS
Render React to HTML Markup
Static Rendering
Dynamic Rendering
Static Rendering
Dynamic Rendering
Servers pre-rendered pages from CDN
Good for less changing content
Faster page loads
Requires a rebuild for updates
Longer build times
Lower server overhead
Renders content for each request
Good for personalized content
Interactive User Experience
Increased server load
Slower page loads
No need to rebuild for updates
Not suitable for dynamic content
Not suitable for static content
Static Rendering
Dynamic Rendering
Partial Pre-rendering
Combines Static and Dynamic Rendering
on the same page!
(aka Pre-rendering)
Dynamic
Static
Request web page
Serve static shell
static shell at build time
CDN
Dev
Enable the PPR flag and use Suspense for dynamic content
Build
Generate static shell leaving holes for dynamic content
Deploy
Static shell will be served from CDN Edge servers
Request dynamic content
Stream dynamic content
Download CSS, JS
Insert dynamic content in placeholders
Demo Time!
https://www.partialprerendering.com/
Hype or Innovation?
Hype
Innovation
Still Experimental
Cumulative Layout Shift
Resource Management
Another layer of complexity
Optimized Rendering Strategy
Fast Initial Visual
Default Rendering Model
Great UX and DX
A Next.js thing
A Next.js thing
Partial Pre-rendering
Hype or Innovation?
Kawtar CHOUBARI
@choubari_
@ React Paris