Repository navigation
fix(perf): CWV quick wins - charset, font-display swap, defer GTM, landmark main - #12
Merged
Merged
Conversation
…a11y - Add <meta charSet="utf-8"> as first element in <head> (must be in first 1024 bytes) - Add display: 'swap' to DM_Sans and Fraunces font configs (reduces FCP/LCP blocking) - Move GTM and gtag scripts to <Script strategy="afterInteractive"> (reduces TBT) - Keep themeInit as sync inline script (must run before first paint to avoid flash) - Change Dashboard.tsx top-level <div> to <main> (accessibility landmark) - Change about/page.tsx both return paths <div> to <main> (accessibility landmark) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ranch Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
✅ Deploy Preview for browser-benchmark ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
… with PR #14 Dashboard.tsx: take main's on-demand loading refactor (useViewSummary, initial prop, rowsReady) and apply the <div> → <main> CWV landmark change on the outer wrapper. about/page.tsx: keep CWV's SEO metadata (title, description, openGraph) and <main> landmark while updating MethodologySection to use the explicit MethodologySummary props format introduced in PR #14. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…lify build page.tsx now uses buildBenchmarkVersions/defaultView from the new versions.ts module, matching the Dashboard props interface (regions: string[]) introduced in PR #14. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3 tasks
Dashboard.tsx (taken from main) imports DEFAULT_REGION, summaryDataPath, and SummaryWithoutRows from @/lib/summary-data, which was added in PR #14 but was missing from this branch. aggregate.ts also needed syncing to main: adds ProviderRowStats interface, hasFullStealth field on Summary, providerRowStats field on Summary, and updates hasFullStealthCoverage to use the narrower Pick<Summary, hasFullStealth> param. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…in (PR #14) Dashboard.tsx (from main) passes rowsReady to ResultsTable and FailureExplorer, and disabled to CopyPageButton — props that the old CWV versions of these components did not declare. Also syncs MethodologySection to use the narrower MethodologySummary type (matching the about/page.tsx fix already committed). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ChloeQuijano
previously approved these changes
Dec 2, 2026
ChloeQuijano
marked this pull request as ready for review
December 2, 2026 15:05
Resolve about/page.tsx conflict by keeping the <main> landmark closing tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChloeQuijano
approved these changes
Dec 2, 2026
|
Tested at Ran locally. What I ran
Not covered
Security
|
Xrazik1
approved these changes
Dec 2, 2026
Xrazik1
left a comment
There was a problem hiding this comment.
No findings at 5fe775d7; see the test report.
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
Code-only changes to lift PageSpeed scores on cloudbrowserbenchmark.com (baseline: mobile 48/100, desktop 60/100).
website/src/app/layout.tsx: Move<meta charSet>first in<head>(HTML spec / Best Practices fix); adddisplay: 'swap'to DM Sans and Fraunces (unblocks FCP/LCP render); move GTM loader and gtag init to<Script strategy="afterInteractive">to defer JS execution and reduce Total Blocking Time.website/src/components/Dashboard.tsx: Top-level<div>→<main>(adds the missing page landmark, fixes accessibility score).website/src/app/about/page.tsx:<div>wrapper →<main>(landmark fix); update page title, meta description, and Open Graph tags to use benchmark-specific copy; update H1 to match.Test plan
cd website && npm run buildpasses with no type errors🤖 Generated with Claude Code