@chenglou/pretext from a CDN and needs a network connection.prepare() runs once per text and font. Everything that happens when you drag the width is layout(): arithmetic over cached widths.
Built on chenglou/pretext 1.0.0 (MIT), loaded from a CDN.