Skip to content

Add Initial Load benchmark to Baseline HTML - #959

Open
pate0845 wants to merge 1 commit into
e18e:mainfrom
pate0845:958-baseline-html-initial-load
Open

pate0845 wants to merge 1 commit into
e18e:mainfrom
pate0845:958-baseline-html-initial-load

Conversation

@pate0845

Copy link
Copy Markdown

Closes #958

Adds ssrInitialLoad to the Baseline HTML measurements in frameworks-config.ts, so CI will now run the Initial Load benchmark for it. Type-check and tests pass locally.

Question on old results: none of the files in packages/results/data/baseline-html/versions/ or latest.json include Initial Load. Should I delete all the versioned files, or leave them for the stats PR after merge to replace? Happy to update either way.

Checklist

  • If updating UI/UX components ensure you have added screenshots or a gif or video of the changes to the PR description
  • If this is a dependabot PR that bumps a metaframework version, ensure that all package versions in the package match the versions installed by the metaframework version being bumped
  • If this is a dependabot PR that bumps a metaframework version in a starter-* package, ensure that the deps, and file content matches the output of the metaframeworks recommended starter/default project

@AlexanderKaran

Copy link
Copy Markdown
Collaborator

@pate0845 Thanks for the PR! The config change enables the benchmark, but the Baseline HTML server currently returns the 1,000-row SSR table for every URL. When Lighthouse visits /initial-load, it ends up measuring that table.

Could you add a /initial-load route that serves the same three-card page and shared stylesheet as the other apps? packages/app-astro/src/pages/initial-load.astro is a good reference for the markup and CSS. However it probably not as simple as this. You will need to put some thought into routing for the HTML Baseline so it can be used for others.

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.

HTML Baseline Initial Load

2 participants