feat: atomic-wind CSS generator warmup#2874
Open
abaicus wants to merge 2 commits into
Open
Conversation
Contributor
Bundle Size Diff
|
Contributor
|
Plugin build for 011e1e2 is ready 🛎️!
|
Contributor
E2E TestsPlaywright Test Status: See serial and parallel matrix jobs Performance ResultsserverResponse: {"q25":391.7,"q50":407.75,"q75":429.7,"cnt":10}, firstPaint: {"q25":535.6,"q50":631.05,"q75":678.3,"cnt":10}, domContentLoaded: {"q25":3246.3,"q50":3282.4,"q75":3358.2,"cnt":10}, loaded: {"q25":3248.4,"q50":3284.35,"q75":3360.1,"cnt":10}, firstContentfulPaint: {"q25":3750.6,"q50":3774.25,"q75":3856,"cnt":10}, firstBlock: {"q25":13129.8,"q50":13295.9,"q75":13430.2,"cnt":10}, type: {"q25":23,"q50":24.01,"q75":25.14,"cnt":10}, typeWithoutInspector: {"q25":20.08,"q50":20.63,"q75":21.12,"cnt":10}, typeWithTopToolbar: {"q25":28.35,"q50":29.3,"q75":32.72,"cnt":10}, typeContainer: {"q25":12.71,"q50":13.21,"q75":13.76,"cnt":10}, focus: {"q25":103.31,"q50":107.1,"q75":111.79,"cnt":10}, inserterOpen: {"q25":37.57,"q50":38.57,"q75":38.96,"cnt":10}, inserterSearch: {"q25":12.76,"q50":13.04,"q75":13.71,"cnt":10}, inserterHover: {"q25":5.06,"q50":5.2,"q75":5.34,"cnt":20}, loadPatterns: {"q25":1428.87,"q50":1472.17,"q75":1525.55,"cnt":10}, listViewOpen: {"q25":205.16,"q50":211.42,"q75":223.39,"cnt":10} |
Soare-Robert-Daniel
approved these changes
Jun 18, 2026
Co-authored-by: abaicus <15010186+abaicus@users.noreply.github.com>
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.
Summary
Test instructions
bg-orange-500,md:py-36, columns)Happy path — cache warms at save
/?atomic_wind_css_warm=<nonce>&post_id=<id>&v=<timestamp>→ 200, headerX-Robots-Tag: noindexotter/v1/atomic-wind(style-builder saving the CSS)#atomic-wind-css-warm-frameappears briefly, then is removed_atomic_wind_cssis now populated and contains the expected classes — without visiting the front endwp post meta get <post_id> _atomic_wind_cssRe-save / updates
bg-orange-500→bg-blue-500), Update_atomic_wind_cssreflects the new class (thev=<timestamp>cache-bust forces a fresh render)Edge cases
#atomic-wind-css-warm-frameexists at a time (old one removed)Security gates
/?atomic_wind_css_warm=bogus&post_id=<id>directly → not served (falls through to normal page)edit_post)Automated tests (optional, for devs)
npm run test:unit:php:base -- --filter TestAtomicWindBlocks→ greennpm run lint -- src/atomic-windandnpm run lint:php→ cleanRegression sanity
Checklist before the final review