Repository navigation
fix(seo): lead titles with the page, settle Meme breadcrumbs and unglue chips - #338
Conversation
…ue chips Google cut or rewrote every title, since each one opened with "Petit Meme -". A title now reads "<what the page holds> | Petit Meme", the administration keeps "| Admin Petit Meme", and the 404 and the admin Dashboard and Services pages go through the same helpers. The pipe keeps the site name apart from Meme titles that already hold a hyphen. A Meme's breadcrumb took its first Category in database order, so it could change between crawls. It now leads with the Category linked first, then by id, and a Meme without one still goes through All memes. Google quoted a Meme's keyword chips as one glued word, because the server-rendered chips had no whitespace between them. Each chip now opens with a space that collapses on screen. Closes #308 Closes #300
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📦 Startup JS · ✅ No heavierBrotli · 33 routes · against main at
What moved
Caution Far from the goal. 🟩 is the goal, each 🟥 one more goal’s worth.
📋 Every route
🤖 Agent briefWhat this measures. The Brotli size of each JS file the server-rendered page of a route modulepreloads, read from the TanStack Start manifest of Rules. Budgets live in Reproduce pnpm run build:e2e
gh run download 47122329418 --name bundle-size --dir /tmp/main-bundle-size
git show origin/main:bundle-budget.json > /tmp/main-budget.json
pnpm run bundle-size --base /tmp/main-bundle-size/report.json --base-budget /tmp/main-budget.json
pnpm run build:analyzeData {
"verdict": "pass",
"base": {
"commit": "1806f93",
"runId": "47122329418"
},
"violations": [],
"raisedBudgets": [],
"routeChanges": [
{
"name": "/reels",
"beforeBytes": 382174,
"afterBytes": 381882
},
{
"name": "/admin/downloader",
"beforeBytes": 375048,
"afterBytes": 374703
},
{
"name": "/admin/services",
"beforeBytes": 351035,
"afterBytes": 350690
},
{
"name": "/embed/$memeId",
"beforeBytes": 361301,
"afterBytes": 360957
},
{
"name": "/",
"beforeBytes": 446661,
"afterBytes": 446351
},
{
"name": "/admin",
"beforeBytes": 372884,
"afterBytes": 372539
},
{
"name": "/dmca",
"beforeBytes": 420961,
"afterBytes": 420633
},
{
"name": "/mentions-legales",
"beforeBytes": 420964,
"afterBytes": 420636
},
{
"name": "/privacy",
"beforeBytes": 420962,
"afterBytes": 420634
},
{
"name": "/terms-of-use",
"beforeBytes": 420963,
"afterBytes": 420635
},
{
"name": "/verify-email",
"beforeBytes": 441665,
"afterBytes": 441337
},
{
"name": "/memes/$memeId",
"beforeBytes": 497341,
"afterBytes": 497062
},
{
"name": "/admin/activity/$ip",
"beforeBytes": 375460,
"afterBytes": 375115
},
{
"name": "/admin/library/$memeId",
"beforeBytes": 488539,
"afterBytes": 488194
},
{
"name": "/admin/users/$userId",
"beforeBytes": 398009,
"afterBytes": 397664
},
{
"name": "/app",
"beforeBytes": 430112,
"afterBytes": 429770
},
{
"name": "/admin/activity",
"beforeBytes": 374738,
"afterBytes": 374393
},
{
"name": "/admin/ai-search",
"beforeBytes": 365893,
"afterBytes": 365548
},
{
"name": "/admin/categories",
"beforeBytes": 407683,
"afterBytes": 407338
},
{
"name": "/admin/library",
"beforeBytes": 409367,
"afterBytes": 409022
},
{
"name": "/admin/proposals",
"beforeBytes": 377146,
"afterBytes": 376801
},
{
"name": "/admin/users",
"beforeBytes": 387468,
"afterBytes": 387123
},
{
"name": "/checkout/success",
"beforeBytes": 415461,
"afterBytes": 415133
},
{
"name": "/memes/ai-search",
"beforeBytes": 467033,
"afterBytes": 466731
},
{
"name": "/password/create-new",
"beforeBytes": 454619,
"afterBytes": 454291
},
{
"name": "/password/reset",
"beforeBytes": 452937,
"afterBytes": 452609
},
{
"name": "/memes/$memeId/studio",
"beforeBytes": 516759,
"afterBytes": 516493
},
{
"name": "/memes/bookmarks",
"beforeBytes": 448212,
"afterBytes": 447883
},
{
"name": "/faq",
"beforeBytes": 415788,
"afterBytes": 415460
},
{
"name": "/pricing",
"beforeBytes": 428771,
"afterBytes": 428443
},
{
"name": "/settings",
"beforeBytes": 465909,
"afterBytes": 465581
},
{
"name": "/submit",
"beforeBytes": 456506,
"afterBytes": 456178
},
{
"name": "/memes/category/$slug",
"beforeBytes": 447354,
"afterBytes": 447033
}
],
"chunkChanges": [
{
"chunk": "_memeId.studio",
"deltaBytes": -961,
"loadedBy": [
"every route"
],
"isRegression": false
},
{
"chunk": "index",
"deltaBytes": 599,
"loadedBy": [
"every route"
],
"isRegression": false
}
]
} |
Summary
Titles lead with the page, the site name last:
The pipe keeps the site name apart from Meme titles that already hold a hyphen. The administration keeps its own name (
Dashboard | Admin Petit Meme). The 404 page and the admin Dashboard and Services pages now go through the same helpers.buildPageTitlemoves tohelpers/page-title.ts, so the 404 page in the main bundle no longer pulls inlib/seo/meta.ts.A Meme's breadcrumb no longer takes its first Category in database order:
The keyword and Category chips of a Meme page now each open with a space. On screen it collapses, so the layout does not move, and in the server-rendered text each chip becomes its own word. No
data-nosnippet, as decided in #300.Evidence
Before: Google shows "Petit Meme" as the site name and drops it from the title, or cuts the title. Snippets glue keywords together:
seinsfillesexprésidenttemps des tempêtes….After: titles and chip text in the server-rendered HTML of the local server:
In Chrome and WebKit, at 390 px and 1280 px, each
<li>measures exactly the size of its link, so the layout does not move.Unit tests, failing before and passing after:
buildSeo({ title })gives"<title> | Petit Meme", andbuildAdminPageHeadgives"<title> | Admin Petit Meme".buildMemeBreadcrumbNode:[Son, Énervé]→ Énervé, linked first;categoryId.The e2e title check in
english-journey.spec.tsfollows the new shape.Merge Danger
Door: two-way
Only text in
<title>, the JSON-LD and the space in front of each chip change. A revert puts back the old behaviour. Google will need a new crawl to show the new titles.Blast Radius: SEO
The title of every page changes in search results and tabs. Once live, run a Meme page with a Category and one without through the Rich Results Test.
Closes #308
Closes #300