Repository navigation
docs(openspec): propose perf-critical-render-path - #634
Merged
Merged
Conversation
Deploying with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 titleperf(build): inline critical css and trim the entry bundle.