What the Page Says Before the JavaScript Runs
On one cold load over a slow network, everything below our hero stayed black for about eight seconds. Nothing was broken: the words were waiting for JavaScript. Since November 26, our reveal system no longer hides the copy in the server HTML. Its motion is an enhancement, never a gate.
On this page
It happened on an iPhone, in a private tab so nothing came from the cache. It looked like a freeze. Nothing was frozen, and nothing had failed: the words were already in the page, invisible, waiting for its JavaScript to download, start up and report that each block was on screen.
That was one load, on one phone and one network: an observation, not a measurement across visitors. It was enough. A page that goes black whenever its scripts run late is not finished, however good it looks once they arrive.
- of black below the hero, on one cold load
- ~8 s
- shared reveal classes that hide only while armed
- 13
- languages in which a test renders the /services playbook
- 6
- inline opacity: 0 left in the live /services HTML
- 0
The eight seconds come from that one load. The other figures are as of November 27, 2026.
Why was the copy hidden?
Because hidden was the default. The classes that fade and lift our sections into place started at opacity: 0 in their base CSS rules. A block turned visible only when an IntersectionObserver saw it on screen and set the attribute the CSS was waiting for, [data-active] or [data-visible]. That observer could only run after hydration, the moment the page's JavaScript takes over the HTML the server sent.
On a desktop with a warm cache, the wait was short enough to read as polish. On a cold phone it lasted as long as the bundle took to arrive and start, and until then nothing below the hero could appear. Our pages are near-black, so invisible copy doesn't look like a blank page. It looks like a black one.
The hero escaped for a structural reason. Its entrance is a CSS keyframe, and CSS animations run without any script. Everything beneath it was waiting on an observer.
Missing decoration is invisible. Missing copy is a black page.
What does the server HTML show now?
The copy, with no reveal class hiding it. Since November 26, the contract between our CSS and our JavaScript has been inverted: the hidden start states moved out of the base rules and under one attribute, [data-armed], which only the page's own JavaScript sets. A reader whose scripts never arrive loses no copy to the reveal system.
.animate-in {
transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-in[data-armed] {
opacity: 0;
transform: translateY(24px);
}
.animate-in[data-visible] {
opacity: 1;
transform: translateY(0);
}From globals.css. The base rule declares only the transition. The hidden start state exists only while a block is armed, and the observer's data-visible brings the block in.
Two conditions decide whether a block is armed after hydration. It must still be below the fold, because a block the reader can already see should never vanish to replay its entrance. And the reader must not have asked for reduced motion. The second condition is as much mechanics as principle: our reduced-motion styles force reveal classes visible with plain class selectors, and an armed selector would beat them on specificity. The simple, correct choice is never to arm.
The fold test is cheaper than it looks. Reading each block's position as it mounts would force the browser to lay out the page once per block, all inside one long task during a cold load. Instead, the test uses the geometry an IntersectionObserver reports in its first entry for each block, which the browser computes as part of rendering anyway.
Three more rules came with the inversion:
- Ornaments keep hidden bases. Rails, path draws, glints and nodes still start hidden and draw in as their section arrives. If they never draw in, nobody misses them.
- Counters carry real values. The reveal system's counters put their final figure in the server HTML, never a zero waiting for a script. One that is still below the fold when the scripts arrive counts up as it scrolls in, motion permitting; one the reader has already seen keeps its number.
- Demonstrations show how they end. On our private-label page, a small console plays out what happens if a client fires us. By default it shows the end state: “Our access” reads Removed, “Secrets we could reach” reads Rotated, and “Your product” reads Still running. Only an armed console starts from the beginning and plays the change.
How was it checked?
On a phone-sized screen, twice: first with JavaScript off, then with it on. Before the contract shipped, the pass without scripts rendered every section, and the pass with them showed the choreography firing unchanged.
We repeated both passes on the live home page on November 27, and added one with reduced motion requested. With JavaScript off, the reveal system hid no text. With it on, nothing on the first screen armed; the reveal blocks below it did, and each one revealed as it scrolled into view. With reduced motion, nothing armed at all.
Which page slipped?
Our services page. Its playbook, the five phases under “One playbook, every engagement”, and its three service sections (iOS & Android, SaaS Platforms, AI Solutions) ran their own observers, and their server HTML started at opacity 0. With JavaScript off, production hid all three sections and all five phases. On a slow phone they stayed blank until the bundle landed and the reader scrolled to them.
On November 27 they moved onto the contract. The sections now use the shared <Reveal> wrapper and the site's std-reveal class, whose hidden state exists only under [data-armed], and the playbook is a server component. The fix was checked on /services and its German twin, /de/leistungen, at desktop and iPhone 13 sizes. With JavaScript off, no heading was hidden. With it on, all 11 revealed blocks reached full opacity once scrolled in, in the same layout as before.
A test now guards the playbook. process-story.test.ts already rendered the /services playbook in all six languages to check its five phases. It now also fails if that server HTML carries an inline opacity: 0:
// Visible in the server HTML: hidden start states come only from
// [data-armed] (set by <Reveal> after hydration), never inline.
expect(services).not.toMatch(/style="[^"]*opacity:\s*0[;"]/);From tests/unit/process-story.test.ts. On November 27 the live HTML of /services and /de/leistungen carried no inline opacity: 0.
Why a test, when the rule was already written down? Because it was written down, in a comment above the CSS, and a page slipped past it anyway. A comment explains a rule. A test enforces it.
Who reads a page before its scripts?
More readers than a phone in its first seconds. Anyone who asks their device for reduced motion never has a reveal block armed, so the server's version is the one they read. Reader views, link previews and many tools that fetch a page on someone's behalf work from the HTML, and some of them never run a script at all. We make no claim about what each of them does with a page. We decide what they are given.
The lesson fits in one line: content in the server HTML, motion as an enhancement, and a test that fails when a page slips.
None of it made the site less animated. With JavaScript on, the same blocks still rise and fade into place as a reader scrolls; the words just no longer wait for the motion. Animation makes a good servant and a bad gatekeeper.
Making Mobile Safari Fast was about how quickly a page arrives; this piece is about what it says when it does. Opacity has tripped us up before: Rebuilding the Front Page explains why some of the hero's entrances start at 0.011, not zero.
One check is worth running on your own product: open it on a phone, in a private tab, over a slow connection, and watch what the first seconds show. If your copy isn't there, tell us what you're building.