← All resources

The guide · breakdown

The future of website interfaces.

Pretext is a single JavaScript/TypeScript package that lets you measure and lay out text without relying on the browser's layout engine. Every website you've ever used asks the browser to figure out where text goes — a process called "reflow", one of the slowest things a browser does, and the biggest bottleneck in web design for 30 years. Pretext skips it entirely: all measurement in pure TypeScript, no DOM, no CSS layout, no reflow. Just math. The result — hundreds of thousands of text elements rendering at 120fps.

The full breakdown

🔒 Drop your email to reveal the full breakdown

Get the full breakdown, free.

Drop your email and the breakdown unlocks instantly, plus every other guide and resource in the library. One email a week, unsubscribe anytime.