Demo 4

Build template pages incrementally

This page creates only the first visible template pages immediately, then fills the rest of the inert template cache in background batches to improve startup responsiveness.

Back

Creating the initial visible templates first, then filling the remaining template cache in the background.

100,000 Total names
0 Live list items
0 Mounted pages
0 Built templates
0 / 1,000 Build progress
Loading... Initial load time

Visible pages are generated immediately. Remaining templates are created incrementally with idle/frame-sized work.

The hidden #template-bank fills gradually as background work creates more inert page templates.

Loading template overview...

How this version behaves

Startup profile

Visible pages are created first, so the initial render avoids the huge parse cost of shipping every template in the original document.

Background work

Additional template pages are built in small batches with idle or frame-sized scheduling. The page keeps improving its cache while remaining interactive.

Main tradeoff

This keeps the template model, but it still eventually creates many DOM fragments. It spreads work over time instead of paying everything up front.