Skip to content

docs(openspec): propose perf-critical-render-path - #634

Merged
TheMeinerLP merged 2 commits into
mainfrom
docs/propose-perf-critical-render-path
Nov 22, 2026
Merged

TheMeinerLP merged 2 commits into
mainfrom
docs/propose-perf-critical-render-path

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Collaborator

Problem

On a phone the English start page takes a long time to show anything. A Lighthouse 12.8.2 run on 2026-11-22 scores it 75 on mobile (first paint 3.5 s, largest paint 4.1 s) while desktop scores 99, so our desktop-only CI gate never notices.

How it shows up

The browser paints nothing until a 114 KB stylesheet has arrived, which alone costs about 450 ms on mobile. The first script is about 168 KB with roughly 77 KB unused, and 48 preload hints compete with the stylesheet and the main image on a slow connection.

Approach

This is the proposal only, no code. It plans to measure first, then inline the CSS the first screen needs and shrink what is left (for example seasonal styles that are inactive most of the year), trim the entry script and its preload hints, and prove the result with before/after mobile Lighthouse numbers in the code PR. The design lists the options, the trade-off of a larger cached HTML response, and the risks. Ships as perf(build) under the title perf(build): inline critical css and trim the entry bundle.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
launchpad 0a645fe Commit Preview URL

Branch Preview URL
Nov 22 2026, 10:34 PM

@TheMeinerLP
TheMeinerLP merged commit 1246ee2 into main Nov 22, 2026
13 checks passed
@TheMeinerLP
TheMeinerLP deleted the docs/propose-perf-critical-render-path branch November 22, 2026 22:49
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