Pretext is a text measurement library. The most interesting use cases have no DOM at all. (opens in new tab)
Pretext measures text 300x faster than the browser by replacing layout reflows with arithmetic. Cursor already shipped it. The use cases that matter most are in 3D, on servers, and in CI.
Read the original article