中文
Knowledge

Customer journey

Articles grouped by the seven stages a customer moves through, from discovery to repeat purchase; accessibility, privacy, performance and data quality span every stage and are listed separately.
1. Convert
The customer adds to cart and pays.
1 article

Across the journey

Properties of every stage: accessibility, privacy and consent, performance, localization and data quality.

Taming Layout Thrashing in Horizon: On-Demand Measurement, Batched Reads and Writes, Frame-Level Scheduling
A set of techniques from the Horizon 4.2.0 source for avoiding forced synchronous layout: measuring header heights before first paint only when needed, getting sizes from IntersectionObserver, batching reads and writes in the variant picker, a ResizeNotifier that skips the first callback, a Scheduler that waits for transitions, yielding to the main thread, and composing the fly-to-cart arc with CSS animations.
Horizon's Server-Side Contrast Colors: Deriving Text and Derived Colors with Liquid Color Filters
A Horizon 4.2.0 source walkthrough of how contrast colors are derived on the server when a block has a custom background: the palette's lightest and darkest colors, contrast-override's three-step text fallback and border fallback, brightness-based opacity tokens, hover color derivation, skipping contrast over background media, and issues such as the hard-coded brightness threshold and a preset description that doesn't match the code.
Horizon's Cross-Document View Transitions: Render Blocking, Bail-Out Conditions and a WebView Blocklist
A Horizon 4.2.0 source walkthrough of cross-document View Transitions in a multi-page theme: a settings-driven opt-in, render blocking until main content with a 1.8 second cap, releasing it when no transition can happen, skipping on user input, switching animations by type and passing the type across pages, plus the in-app WebView blocklist and in-page transitions.