Reduce documentation image LCP and blocking CSS on v3 and legacy sites
The current v3 landing page records very slow hero-logo LCP in field analytics: light SVG 31,280 ms across 27 observations and dark SVG 4,635 ms across 8. The supplied report also includes the legacy Docusaurus carousel and showcase-document images on wails.io.
The v3 deployment disables CSS purging to preserve home-page classes created by inline JavaScript. This ships a 191,986-byte minified blocking stylesheet. A controlled cold-load trace at 1.6 Mbps, 150 ms latency and 4x CPU slowdown identifies the stylesheet as the paint gate. The 721,488-byte decorative background adds substantial transfer after first paint. Both theme logos are requested, with no image priority hints. The Pages deployment responds normally from this test machine; the custom-domain HTML request receives a Cloudflare managed challenge, which needs to be distinguished from content timing before claiming the field outlier is resolved.
Scope: optimize existing docs loading without adding capabilities or removing animations/content. Reduce blocking CSS safely while preserving classes from inline scripts, prioritize the critical logo, and qualify translated landing pages, theme changes and JavaScript-disabled rendering. Assess legacy carousel competition and the specifically reported large showcase images separately.
Acceptance: repeat controlled before/after measurements on the same source and hardware; strict full-corpus build, links, site and translation checks pass; animations/themes still work; publish provenance and distinguish lab timings from field analytics. Do not place this bug in the v3.1.0 feature milestone. Implementation is being prepared locally; no push or deployment has been authorized.
Source: wailsapp/wails