Skip to content

lighter first render - #62

Merged
lochie merged 3 commits into
mainfrom
initial-render-fix
Nov 13, 2026
Merged

lochie merged 3 commits into
mainfrom
initial-render-fix

Conversation

@lochie

@lochie lochie commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

this update makes the first morph on a page cheaper and fixes a leftover span when a number becomes text.

  • the first TextMorph on a page no longer pays text-segmentation startup during an interaction.
  • fixes digits keeping an inner span when a number turns into text (12 → 12px).
  • the React wrapper no longer rebuilds its controller and initial HTML on every render.

INP of a click that mounts N TextMorphs in a React 19 app, chrome, median of 9 runs:

main this branch
20 instances, 4× CPU 144 ms 112 ms
100 instances, 4× CPU 200 ms 168 ms
100 instances, 1× CPU 120 ms 112 ms

@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
torph Ready Ready Preview Nov 13, 2026 2:45pm UTC
torph-svelte-example Ready Ready Preview Nov 13, 2026 2:45pm UTC
torph-vue-example Ready Ready Preview Nov 13, 2026 2:45pm UTC

Request Review

This branch was successfully deployed

3 active deployments
Preview – torph — e660ea10 Deployed Nov 13, 2026 by vercel[bot]
Preview – torph-svelte-example — e660ea10 Deployed Nov 13, 2026 by vercel[bot]
Preview – torph-vue-example — e660ea10 Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant