---
title: onmax.me on comark-ui #431, #432, and #433
resources:
  - url: https://github.com/onmax/comark-ui/pull/431
    title: PR #431
  - url: https://github.com/onmax/comark-ui/pull/432
    title: PR #432
  - url: https://github.com/onmax/comark-ui/pull/433
    title: PR #433
---

onmax.me drops its own script splitting, its Firefox details fade, and its hand-written block list, and renders the same on the three PR builds.

Built from onmax.me `main` (23d2645) twice: on comark-ui 0.12.1, then on the PR builds from pkg.pr.new with the app code deleted. Chromium and Firefox 157 through Playwright, 1200×900.

## ComarkHtml (#431)

`<ComarkHtml :html>` from `comark-ui/html/vue` replaces `splitScripts()` and the `useHead` scripts. The X embed still gets its height from comark-embed's script, and a screenshot still zooms. Both pairs are pixel-identical.

::compare{title="The X post embed in Where's the BEAF"}
:::screenshot{src="https://drop.vitehub.dev/f/e5db840b-f2f8-4bd2-b22c-0a57f0cc9f30.png" alt="X post embed sized by comark-embed's script, with splitScripts" title="Before: splitScripts"}
:::
:::screenshot{src="https://drop.vitehub.dev/f/3c5eb749-05f9-475f-a665-a67b1fd2a094.png" alt="The same X post embed rendered through ComarkHtml" title="After: ComarkHtml"}
:::
::

::compare{title="A screenshot zoomed open"}
:::screenshot{src="https://drop.vitehub.dev/f/1b606f26-ee72-46a2-9456-8a4981b442f9.png" alt="A post screenshot opened in comark-zoom's dialog, with splitScripts" title="Before: splitScripts"}
:::
:::screenshot{src="https://drop.vitehub.dev/f/7f245d66-1874-4570-837e-3cb723410ef0.png" alt="The same screenshot opened in comark-zoom's dialog through ComarkHtml" title="After: ComarkHtml"}
:::
::

| | 0.12.1 + splitScripts | #431 |
| --- | --- | --- |
| Runtimes started | `__comarkZoom`, `__comarkCarousel`, `__comarkAnnotate`, `__comarkEmbed` | `__comarkZoom`, `__comarkCarousel`, `__comarkAnnotate`, `__comarkEmbed` |
| X iframe height | 648px | 648px |
| Zoom dialog opens | yes | yes |
| Page errors | 0 | 0 |
| Client JS | 1,076,374 bytes | 1,076,701 bytes |

From `comark-ui/vue` instead, the client JS was 2,061,490 bytes, which is why it has its own entry.

## Details fade in Firefox (#432)

`main.css` loses its `@supports not (interpolate-size)` fallback; comark-details now brings one. The open box is pixel-identical, and the content still fades in. The fade is a little slower, at the package's .25s opening timing instead of the app's 200ms.

::compare{title="The boil-the-ocean SKILL.md details, open in Firefox"}
:::screenshot{src="https://drop.vitehub.dev/f/03c89a4d-f425-4790-ac29-54655a64bca2.png" alt="Open details box in Firefox with the app's own fallback" title="Before: app CSS"}
:::
:::screenshot{src="https://drop.vitehub.dev/f/d6491bca-1201-4c82-8134-0c5e5853a99d.png" alt="Open details box in Firefox with comark-details' fallback" title="After: comark-details"}
:::
::

| Frame after `open` | 1 | 2 | 3 | 4 | 5 | 6 |
| --- | --- | --- | --- | --- | --- | --- |
| Before: app CSS | 0.00 | 0.93 | 0.97 | 0.98 | 0.99 | 1.00 |
| After: comark-details | 0.00 | 0.27 | 0.51 | 0.68 | 0.80 | 0.87 |

## The Console's block list (#433)

`server/content.ts` passes `componentInfo(comarkUiOptions)` from `comark-ui/info`, the options the renderer uses, instead of its own map. ViteHub's `documents()` accepts it, and the collection goes from 5 blocks to 54, with more props on the five it had:

| Block | Before | After |
| --- | --- | --- |
| `embed` | `url`, `title`, `start` | `url`, `title`, `start`, `height` |
| `carousel` | `title` | `title`, `columns`, `zoom` |
| `compare` | — | `title`, `mode`, `ink`, `id` |
| `screenshot` | `src`, `alt`, `viewport`, `href` | `src`, `alt`, `title`, `href`, `viewport`, `ink`, `id` |
| `annotation` | `x`, `y`, `w`, `h`, `color`, `mark`, `side` | `x`, `y`, `w`, `h`, `mark`, `color`, `side`, `at`, `series`, `value`, `to` |

All 54: `screenshot`, `compare`, `annotation`, `carousel`, `slide`, `cast`, `chart`, `palette`, `diff`, `embed`, `icon`, `details`, `accordion`, `accordion-item`, `collapsible`, `file-tree`, `field`, `field-group`, `properties`, `badge`, `delta`, `stats`, `progress`, `table`, `card`, `card-group`, `columns`, `column`, `qr`, `cite`, `sources`, `steps`, `question`, `poll`, `recall`, `tabs`, `tabs-item`, `code-group`, `magic-move`, `toc`, `ref`, `tests`, `git-graph`, `bundle`, `time`, `zoom`, `suggestion`, `comment`, `note`, `tip`, `important`, `warning`, `caution`, `callout`.

I couldn't open the hosted Console against a local build, so this is the list `documents()` returns, which is what the Console's insert menu reads.
