1 of 14

Partial Pre-rendering

Hype or Innovation?

Kawtar CHOUBARI

@choubari_

@ React Paris

2 of 14

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

3 of 14

Static Rendering

Dynamic Rendering

4 of 14

5 of 14

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

6 of 14

Static Rendering

Dynamic Rendering

Partial Pre-rendering

Combines Static and Dynamic Rendering

on the same page!

(aka Pre-rendering)

7 of 14

Dynamic

Static

8 of 14

9 of 14

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

10 of 14

Demo Time!

11 of 14

https://www.partialprerendering.com/

12 of 14

Hype or Innovation?

13 of 14

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

14 of 14

Partial Pre-rendering

Hype or Innovation?

Kawtar CHOUBARI

@choubari_

@ React Paris