Skip to content

fix: lay out blocks before the docs app hydrates, so pages stop jumping - #399

Merged
vite-hub[bot] merged 2 commits into
mainfrom
fix/magic-move-cls
Nov 10, 2026
Merged

vite-hub[bot] merged 2 commits into
mainfrom
fix/magic-move-cls

Conversation

@onmax

@onmax onmax commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

On https://comark-ui.onmax.me/magic-move the page jumps while it loads: CLS is 0.45 on a 390px phone and 0.20 on desktop. The server paints every magic-move step stacked under its label, then the block collapses to one step about 400px shorter once the app hydrates. Charts (0.49), introduction (0.17), table, time, chips, and most other package pages jump the same way, less.

Two things cause it:

  • Tabs, magic move, carousels, and tables switch to their scripted layout only when their script sets data-*-ready on <html>. The HTML renderer runs that script inline, so its pages never jump. The Vue, React, and Svelte components start it on mount, so a server render paints the no-script layout first.
  • The docs pinned @vite-hub/docs build doesn't link comark-ui's styles in the server HTML (feat(docs): render pages with comark-ui's blocks vite-hub/vitehub#3572 does, on main), so every block paints unstyled until its component adds its styles on mount.

The first commit gives each of those four blocks' Vue, React, and Svelte roots data-comark-mounts. Under @media (scripting: enabled), shared/scripted.ts applies the scripted layout to those roots too, so a server render already paints the layout its script will keep. The HTML renderer still waits for its script, so a mail client or a strict CSP keeps the layout that reads without one. Magic move's unlayered code block rules also go up to three classes, as tabs' already are: the docs' .comark-content .ck tied with them and won once nothing appended magic move's styles last.

The second commit is the docs site:

Before/after on Drop

CLS from headless Chromium, the first 4 s after load, live site against this branch built with pnpm docs:generate:

page live, 390px live, 1280px this PR, 390px this PR, 1280px
/magic-move 0.4455 0.2015 0.0002 0.0001
/charts 0.4889 0.3443 0.0001 0.0000
/introduction 0.1675 0.0619 0.0000 0.0000
/table 0.0906 0.1137 0.0002 0.0001
/chips 0.1104 0.0931 0.0001 0.0001
/getting-started 0.0996 0.1051 0.0004 0.0000
/carousel 0.0817 0.0444 0.0002 0.0001
/time 0.0890 0.0681 0.0003 0.0001
/tabs 0.0382 0.0272 0.0003 0.0001

e2e/server-render.e2e.ts renders each of the four blocks with Vue's server renderer and fails on main: magic move goes from 139px to 54px when data-magic-move-ready lands, tabs from 132px to 54px, carousel from 65px to 94px, table from 68px to 102px. A new case in e2e/magic-move.e2e.ts fails on the old selectors. After the app hydrates, the pages I compared (magic move, tabs, carousel, critic, getting started) look the same as live.

@pullfrog

pullfrog Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

No configured credential can serve this run. Your ChatGPT subscription has hit its usage limit, which resets at 2026-11-13 17:11 UTC. Re-trigger after it resets, or add an API key for this provider, which Pullfrog falls back to automatically.

The providers' responses
CODEX_AUTH_JSON: the ChatGPT plan's usage limit is reached

Pick another model →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using gpt-6.1-sol

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T18:55:08.980611Z
We couldn’t complete this review. Comment @codex review to try again.
6bdac67 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pkg-pr-new

pkg-pr-new Bot commented Nov 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@399

comark-badge

pnpm add https://pkg.pr.new/comark-badge@399

comark-cards

pnpm add https://pkg.pr.new/comark-cards@399

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@399

comark-cast

pnpm add https://pkg.pr.new/comark-cast@399

comark-charts

pnpm add https://pkg.pr.new/comark-charts@399

comark-chat

pnpm add https://pkg.pr.new/comark-chat@399

comark-chips

pnpm add https://pkg.pr.new/comark-chips@399

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@399

comark-code

pnpm add https://pkg.pr.new/comark-code@399

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@399

comark-colors

pnpm add https://pkg.pr.new/comark-colors@399

comark-comments

pnpm add https://pkg.pr.new/comark-comments@399

comark-critic

pnpm add https://pkg.pr.new/comark-critic@399

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@399

comark-details

pnpm add https://pkg.pr.new/comark-details@399

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@399

comark-diff

pnpm add https://pkg.pr.new/comark-diff@399

comark-embed

pnpm add https://pkg.pr.new/comark-embed@399

comark-fields

pnpm add https://pkg.pr.new/comark-fields@399

comark-figure

pnpm add https://pkg.pr.new/comark-figure@399

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@399

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@399

comark-github

pnpm add https://pkg.pr.new/comark-github@399

comark-icon

pnpm add https://pkg.pr.new/comark-icon@399

comark-include

pnpm add https://pkg.pr.new/comark-include@399

comark-keys

pnpm add https://pkg.pr.new/comark-keys@399

comark-links

pnpm add https://pkg.pr.new/comark-links@399

comark-linter

pnpm add https://pkg.pr.new/comark-linter@399

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@399

comark-mark

pnpm add https://pkg.pr.new/comark-mark@399

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@399

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@399

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@399

comark-media

pnpm add https://pkg.pr.new/comark-media@399

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@399

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@399

comark-outline

pnpm add https://pkg.pr.new/comark-outline@399

comark-properties

pnpm add https://pkg.pr.new/comark-properties@399

comark-qr

pnpm add https://pkg.pr.new/comark-qr@399

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@399

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@399

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@399

comark-sources

pnpm add https://pkg.pr.new/comark-sources@399

comark-steps

pnpm add https://pkg.pr.new/comark-steps@399

comark-table

pnpm add https://pkg.pr.new/comark-table@399

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@399

comark-tests

pnpm add https://pkg.pr.new/comark-tests@399

comark-time

pnpm add https://pkg.pr.new/comark-time@399

comark-ui

pnpm add https://pkg.pr.new/comark-ui@399

comark-xref

pnpm add https://pkg.pr.new/comark-xref@399

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@399

commit: 6bdac67

@pullfrog

pullfrog Bot commented Nov 9, 2026

Copy link
Copy Markdown

Warning

Your ChatGPT subscription has hit its usage limit, preventing any new runs until it resets.

The last 5 Pullfrog runs on onmax have all failed, so this review did not happen.

The logged error states: "Your ChatGPT subscription has hit its usage limit, which resets at 2026-11-13 17:11 UTC." You have a Codex subscription registered with Pullfrog, but no OpenAI API key is stored as a fallback, so runs cannot proceed until the limit window resets.

To fix it:

  1. Add an OpenAI API key on the BYOK tab of your Billing card — it will be used automatically when your subscription limit is reached. The setup for OpenAI keys is covered in our docs.
  2. If you prefer not to add an API key, you could wait until 2026-11-13 17:11 UTC when your subscription limit resets, or consider other ways to pay for model usage.

@vite-hub

vite-hub Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-10T08:45:36.772Z 10m 9s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

Ready; no repair needed. Inspected the diff and all supplied feedback. Package-scoped `vp test run test/frameworks.test.ts` passed 20/20 tests; focused Playwright passed 12/12; changed-file `vp lint` and `git diff --check` passed. Hosted build, check, e2e and publish succeeded. Pullfrog and Codex reviews were unavailable because of usage limits; neither supplied code findings or unresolved threads. Working tree is clean; no commit or push was necessary.

@vite-hub
vite-hub Bot merged commit 17c5097 into main Nov 10, 2026
5 of 6 checks passed
@vite-hub
vite-hub Bot deleted the fix/magic-move-cls branch November 10, 2026 08:59
@github-actions github-actions Bot mentioned this pull request Nov 9, 2026
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