[{"data":1,"prerenderedAt":2862},["ShallowReactive",2],{"page:\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Ftracking-bundle-size-per-pull-request":3,"all-docs-nav":2318},{"id":4,"title":5,"body":6,"breadcrumb":2295,"dateModified":2304,"datePublished":2304,"description":2305,"extension":2306,"faq":2307,"meta":2312,"navigation":130,"path":2313,"seo":2314,"slug":12,"stem":2315,"type":2316,"__hash__":2317},"content\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Ftracking-bundle-size-per-pull-request\u002Findex.md","Tracking Bundle Size per Pull Request",{"type":7,"value":8,"toc":2278},"minimark",[9,13,17,26,31,49,53,56,554,557,561,568,1239,1383,1396,1555,1559,1562,1845,1848,1940,1944,1947,2014,2116,2119,2123,2149,2153,2191,2195,2198,2202,2207,2210,2214,2217,2221,2224,2228,2231,2235,2274],[10,11,5],"h1",{"id":12},"tracking-bundle-size-per-pull-request",[14,15,16],"p",{},"The most common performance regression on a static site is not a slow algorithm or a layout bug. It is a dependency. Someone imports a date library to format one date, a component library for one button, or a syntax highlighter's full language pack for three languages, and the page's JavaScript doubles. The diff looks innocent — one import line — and a reviewer cannot see the 60 KB behind it.",[14,18,19,20,25],{},"Bundle-size tracking makes that cost visible on the pull request. It reads the built output, compares each asset's compressed size with the base branch, posts a table as a comment and fails when a budget is crossed. It needs no browser and no deploy, runs in about ten seconds, and never flakes. It complements the page-level checks in ",[21,22,24],"a",{"href":23},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002F","Performance Budgets and Lighthouse CI",".",[27,28,30],"h2",{"id":29},"prerequisites","Prerequisites",[32,33,34,38,41],"ul",{},[35,36,37],"li",{},"A static site built in CI with hashed asset filenames (Astro, Vite, webpack, Hugo Pipes and Eleventy with a bundler all produce these).",[35,39,40],{},"Somewhere to store the main branch's latest size report — a workflow artifact is enough.",[35,42,43,44,48],{},"Permission for the workflow to comment on pull requests (",[45,46,47],"code",{},"pull-requests: write",").",[27,50,52],{"id":51},"step-1-measure-the-build-output","Step 1: Measure the Build Output",[14,54,55],{},"Hashed filenames change on every build, so compare assets by a stable key: the filename with the hash removed. A short Node script walks the output directory, compresses each JavaScript, CSS and font file with brotli and gzip, and writes a report:",[57,58,63],"pre",{"className":59,"code":60,"language":61,"meta":62,"style":62},"language-js shiki shiki-themes github-light github-dark","\u002F\u002F scripts\u002Fsize-report.mjs\nimport { readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs';\nimport { join, relative } from 'node:path';\nimport { brotliCompressSync, gzipSync, constants } from 'node:zlib';\n\nconst root = process.argv[2] ?? 'dist';\nconst out = {};\nconst walk = (dir) => readdirSync(dir).forEach((f) => {\n  const p = join(dir, f);\n  if (statSync(p).isDirectory()) return walk(p);\n  if (!\u002F\\.(m?js|css|woff2)$\u002F.test(f)) return;\n  const buf = readFileSync(p);\n  const key = relative(root, p).replace(\u002F[.-][A-Za-z0-9_-]{8,}(?=\\.\\w+$)\u002F, '');   \u002F\u002F strip hash\n  out[key] = {\n    raw: buf.length,\n    gzip: gzipSync(buf, { level: 9 }).length,\n    brotli: \u002F\\.woff2$\u002F.test(f) ? buf.length\n      : brotliCompressSync(buf, { params: { [constants.BROTLI_PARAM_QUALITY]: 11 } }).length,\n  };\n});\nwalk(root);\nwriteFileSync('size-report.json', JSON.stringify(out, null, 2));\n","js","",[45,64,65,74,95,110,125,132,162,175,221,238,266,320,335,393,404,416,438,471,499,505,511,520],{"__ignoreMap":62},[66,67,70],"span",{"class":68,"line":69},"line",1,[66,71,73],{"class":72},"sJ8bj","\u002F\u002F scripts\u002Fsize-report.mjs\n",[66,75,77,81,85,88,92],{"class":68,"line":76},2,[66,78,80],{"class":79},"szBVR","import",[66,82,84],{"class":83},"sVt8B"," { readdirSync, readFileSync, statSync, writeFileSync } ",[66,86,87],{"class":79},"from",[66,89,91],{"class":90},"sZZnC"," 'node:fs'",[66,93,94],{"class":83},";\n",[66,96,98,100,103,105,108],{"class":68,"line":97},3,[66,99,80],{"class":79},[66,101,102],{"class":83}," { join, relative } ",[66,104,87],{"class":79},[66,106,107],{"class":90}," 'node:path'",[66,109,94],{"class":83},[66,111,113,115,118,120,123],{"class":68,"line":112},4,[66,114,80],{"class":79},[66,116,117],{"class":83}," { brotliCompressSync, gzipSync, constants } ",[66,119,87],{"class":79},[66,121,122],{"class":90}," 'node:zlib'",[66,124,94],{"class":83},[66,126,128],{"class":68,"line":127},5,[66,129,131],{"emptyLinePlaceholder":130},true,"\n",[66,133,135,138,142,145,148,151,154,157,160],{"class":68,"line":134},6,[66,136,137],{"class":79},"const",[66,139,141],{"class":140},"sj4cs"," root",[66,143,144],{"class":79}," =",[66,146,147],{"class":83}," process.argv[",[66,149,150],{"class":140},"2",[66,152,153],{"class":83},"] ",[66,155,156],{"class":79},"??",[66,158,159],{"class":90}," 'dist'",[66,161,94],{"class":83},[66,163,165,167,170,172],{"class":68,"line":164},7,[66,166,137],{"class":79},[66,168,169],{"class":140}," out",[66,171,144],{"class":79},[66,173,174],{"class":83}," {};\n",[66,176,178,180,184,186,189,193,196,199,202,205,208,211,214,216,218],{"class":68,"line":177},8,[66,179,137],{"class":79},[66,181,183],{"class":182},"sScJk"," walk",[66,185,144],{"class":79},[66,187,188],{"class":83}," (",[66,190,192],{"class":191},"s4XuR","dir",[66,194,195],{"class":83},") ",[66,197,198],{"class":79},"=>",[66,200,201],{"class":182}," readdirSync",[66,203,204],{"class":83},"(dir).",[66,206,207],{"class":182},"forEach",[66,209,210],{"class":83},"((",[66,212,213],{"class":191},"f",[66,215,195],{"class":83},[66,217,198],{"class":79},[66,219,220],{"class":83}," {\n",[66,222,224,227,230,232,235],{"class":68,"line":223},9,[66,225,226],{"class":79},"  const",[66,228,229],{"class":140}," p",[66,231,144],{"class":79},[66,233,234],{"class":182}," join",[66,236,237],{"class":83},"(dir, f);\n",[66,239,241,244,246,249,252,255,258,261,263],{"class":68,"line":240},10,[66,242,243],{"class":79},"  if",[66,245,188],{"class":83},[66,247,248],{"class":182},"statSync",[66,250,251],{"class":83},"(p).",[66,253,254],{"class":182},"isDirectory",[66,256,257],{"class":83},"()) ",[66,259,260],{"class":79},"return",[66,262,183],{"class":182},[66,264,265],{"class":83},"(p);\n",[66,267,269,271,273,276,279,283,287,290,292,295,298,300,303,306,308,310,313,316,318],{"class":68,"line":268},11,[66,270,243],{"class":79},[66,272,188],{"class":83},[66,274,275],{"class":79},"!",[66,277,278],{"class":90},"\u002F",[66,280,282],{"class":281},"snhLl","\\.",[66,284,286],{"class":285},"sA_wV","(m",[66,288,289],{"class":79},"?",[66,291,61],{"class":285},[66,293,294],{"class":79},"|",[66,296,297],{"class":285},"css",[66,299,294],{"class":79},[66,301,302],{"class":285},"woff2)",[66,304,305],{"class":79},"$",[66,307,278],{"class":90},[66,309,25],{"class":83},[66,311,312],{"class":182},"test",[66,314,315],{"class":83},"(f)) ",[66,317,260],{"class":79},[66,319,94],{"class":83},[66,321,323,325,328,330,333],{"class":68,"line":322},12,[66,324,226],{"class":79},[66,326,327],{"class":140}," buf",[66,329,144],{"class":79},[66,331,332],{"class":182}," readFileSync",[66,334,265],{"class":83},[66,336,338,340,343,345,348,351,354,357,359,362,365,368,370,373,376,379,381,384,387,390],{"class":68,"line":337},13,[66,339,226],{"class":79},[66,341,342],{"class":140}," key",[66,344,144],{"class":79},[66,346,347],{"class":182}," relative",[66,349,350],{"class":83},"(root, p).",[66,352,353],{"class":182},"replace",[66,355,356],{"class":83},"(",[66,358,278],{"class":90},[66,360,361],{"class":140},"[.-][A-Za-z0-9_-]",[66,363,364],{"class":79},"{8,}",[66,366,367],{"class":285},"(?=",[66,369,282],{"class":281},[66,371,372],{"class":140},"\\w",[66,374,375],{"class":79},"+$",[66,377,378],{"class":285},")",[66,380,278],{"class":90},[66,382,383],{"class":83},", ",[66,385,386],{"class":90},"''",[66,388,389],{"class":83},");   ",[66,391,392],{"class":72},"\u002F\u002F strip hash\n",[66,394,396,399,402],{"class":68,"line":395},14,[66,397,398],{"class":83},"  out[key] ",[66,400,401],{"class":79},"=",[66,403,220],{"class":83},[66,405,407,410,413],{"class":68,"line":406},15,[66,408,409],{"class":83},"    raw: buf.",[66,411,412],{"class":140},"length",[66,414,415],{"class":83},",\n",[66,417,419,422,425,428,431,434,436],{"class":68,"line":418},16,[66,420,421],{"class":83},"    gzip: ",[66,423,424],{"class":182},"gzipSync",[66,426,427],{"class":83},"(buf, { level: ",[66,429,430],{"class":140},"9",[66,432,433],{"class":83}," }).",[66,435,412],{"class":140},[66,437,415],{"class":83},[66,439,441,444,447,449,452,454,456,458,460,463,465,468],{"class":68,"line":440},17,[66,442,443],{"class":83},"    brotli:",[66,445,446],{"class":90}," \u002F",[66,448,282],{"class":281},[66,450,451],{"class":285},"woff2",[66,453,305],{"class":79},[66,455,278],{"class":90},[66,457,25],{"class":83},[66,459,312],{"class":182},[66,461,462],{"class":83},"(f) ",[66,464,289],{"class":79},[66,466,467],{"class":83}," buf.",[66,469,470],{"class":140},"length\n",[66,472,474,477,480,483,486,489,492,495,497],{"class":68,"line":473},18,[66,475,476],{"class":79},"      :",[66,478,479],{"class":182}," brotliCompressSync",[66,481,482],{"class":83},"(buf, { params: { [constants.",[66,484,485],{"class":140},"BROTLI_PARAM_QUALITY",[66,487,488],{"class":83},"]: ",[66,490,491],{"class":140},"11",[66,493,494],{"class":83}," } }).",[66,496,412],{"class":140},[66,498,415],{"class":83},[66,500,502],{"class":68,"line":501},19,[66,503,504],{"class":83},"  };\n",[66,506,508],{"class":68,"line":507},20,[66,509,510],{"class":83},"});\n",[66,512,514,517],{"class":68,"line":513},21,[66,515,516],{"class":182},"walk",[66,518,519],{"class":83},"(root);\n",[66,521,523,526,528,531,533,536,538,541,544,547,549,551],{"class":68,"line":522},22,[66,524,525],{"class":182},"writeFileSync",[66,527,356],{"class":83},[66,529,530],{"class":90},"'size-report.json'",[66,532,383],{"class":83},[66,534,535],{"class":140},"JSON",[66,537,25],{"class":83},[66,539,540],{"class":182},"stringify",[66,542,543],{"class":83},"(out, ",[66,545,546],{"class":140},"null",[66,548,383],{"class":83},[66,550,150],{"class":140},[66,552,553],{"class":83},"));\n",[14,555,556],{},"Fonts in WOFF2 are already compressed, so their \"brotli\" size is just their size. Images are deliberately excluded here; they are better budgeted per page by Lighthouse, because what matters is which image a template actually loads.",[27,558,560],{"id":559},"step-2-diff-against-main-and-comment","Step 2: Diff Against Main and Comment",[14,562,563,564,567],{},"The pull request job downloads the latest report from ",[45,565,566],{},"main",", diffs it and posts a comment. Only changed assets are listed, sorted by absolute change, so the comment stays short:",[57,569,571],{"className":59,"code":570,"language":61,"meta":62,"style":62},"\u002F\u002F scripts\u002Fsize-diff.mjs\nimport { readFileSync } from 'node:fs';\nconst base = JSON.parse(readFileSync('base\u002Fsize-report.json'));\nconst head = JSON.parse(readFileSync('size-report.json'));\nconst kb = (n) => (n \u002F 1024).toFixed(1);\nconst rows = [...new Set([...Object.keys(base), ...Object.keys(head)])]\n  .map((k) => ({ k, b: base[k]?.brotli ?? 0, h: head[k]?.brotli ?? 0 }))\n  .filter((r) => r.b !== r.h)\n  .sort((x, y) => Math.abs(y.h - y.b) - Math.abs(x.h - x.b));\nconst total = (r, t) => Object.entries(r).filter(([k]) => k.endsWith(t))\n  .reduce((s, [, v]) => s + v.brotli, 0);\nconst jsBase = total(base, '.js'), jsHead = total(head, '.js');\nlet md = `### Asset size changes (brotli)\\n\\n| Asset | main | this PR | Δ |\\n|---|---|---|---|\\n`;\nfor (const r of rows.slice(0, 15))\n  md += `| \\`${r.k}\\` | ${kb(r.b)} KB | ${kb(r.h)} KB | ${r.h > r.b ? '+' : ''}${kb(r.h - r.b)} KB |\\n`;\nmd += `\\n**Total JS:** ${kb(jsBase)} KB → ${kb(jsHead)} KB\\n`;\nconsole.log(md);\nif (jsHead > 60 * 1024) { console.error('JS total over 60 KB budget'); process.exitCode = 1; }\n",[45,572,573,578,591,620,645,684,726,761,786,836,888,924,958,990,1023,1143,1187,1198],{"__ignoreMap":62},[66,574,575],{"class":68,"line":69},[66,576,577],{"class":72},"\u002F\u002F scripts\u002Fsize-diff.mjs\n",[66,579,580,582,585,587,589],{"class":68,"line":76},[66,581,80],{"class":79},[66,583,584],{"class":83}," { readFileSync } ",[66,586,87],{"class":79},[66,588,91],{"class":90},[66,590,94],{"class":83},[66,592,593,595,598,600,603,605,608,610,613,615,618],{"class":68,"line":97},[66,594,137],{"class":79},[66,596,597],{"class":140}," base",[66,599,144],{"class":79},[66,601,602],{"class":140}," JSON",[66,604,25],{"class":83},[66,606,607],{"class":182},"parse",[66,609,356],{"class":83},[66,611,612],{"class":182},"readFileSync",[66,614,356],{"class":83},[66,616,617],{"class":90},"'base\u002Fsize-report.json'",[66,619,553],{"class":83},[66,621,622,624,627,629,631,633,635,637,639,641,643],{"class":68,"line":112},[66,623,137],{"class":79},[66,625,626],{"class":140}," head",[66,628,144],{"class":79},[66,630,602],{"class":140},[66,632,25],{"class":83},[66,634,607],{"class":182},[66,636,356],{"class":83},[66,638,612],{"class":182},[66,640,356],{"class":83},[66,642,530],{"class":90},[66,644,553],{"class":83},[66,646,647,649,652,654,656,659,661,663,666,668,671,673,676,678,681],{"class":68,"line":127},[66,648,137],{"class":79},[66,650,651],{"class":182}," kb",[66,653,144],{"class":79},[66,655,188],{"class":83},[66,657,658],{"class":191},"n",[66,660,195],{"class":83},[66,662,198],{"class":79},[66,664,665],{"class":83}," (n ",[66,667,278],{"class":79},[66,669,670],{"class":140}," 1024",[66,672,48],{"class":83},[66,674,675],{"class":182},"toFixed",[66,677,356],{"class":83},[66,679,680],{"class":140},"1",[66,682,683],{"class":83},");\n",[66,685,686,688,691,693,696,699,702,705,708,711,714,717,719,721,723],{"class":68,"line":134},[66,687,137],{"class":79},[66,689,690],{"class":140}," rows",[66,692,144],{"class":79},[66,694,695],{"class":83}," [",[66,697,698],{"class":79},"...new",[66,700,701],{"class":182}," Set",[66,703,704],{"class":83},"([",[66,706,707],{"class":79},"...",[66,709,710],{"class":83},"Object.",[66,712,713],{"class":182},"keys",[66,715,716],{"class":83},"(base), ",[66,718,707],{"class":79},[66,720,710],{"class":83},[66,722,713],{"class":182},[66,724,725],{"class":83},"(head)])]\n",[66,727,728,731,734,736,739,741,743,746,748,751,754,756,758],{"class":68,"line":164},[66,729,730],{"class":83},"  .",[66,732,733],{"class":182},"map",[66,735,210],{"class":83},[66,737,738],{"class":191},"k",[66,740,195],{"class":83},[66,742,198],{"class":79},[66,744,745],{"class":83}," ({ k, b: base[k]?.brotli ",[66,747,156],{"class":79},[66,749,750],{"class":140}," 0",[66,752,753],{"class":83},", h: head[k]?.brotli ",[66,755,156],{"class":79},[66,757,750],{"class":140},[66,759,760],{"class":83}," }))\n",[66,762,763,765,768,770,773,775,777,780,783],{"class":68,"line":177},[66,764,730],{"class":83},[66,766,767],{"class":182},"filter",[66,769,210],{"class":83},[66,771,772],{"class":191},"r",[66,774,195],{"class":83},[66,776,198],{"class":79},[66,778,779],{"class":83}," r.b ",[66,781,782],{"class":79},"!==",[66,784,785],{"class":83}," r.h)\n",[66,787,788,790,793,795,798,800,803,805,807,810,813,816,819,822,824,826,828,831,833],{"class":68,"line":223},[66,789,730],{"class":83},[66,791,792],{"class":182},"sort",[66,794,210],{"class":83},[66,796,797],{"class":191},"x",[66,799,383],{"class":83},[66,801,802],{"class":191},"y",[66,804,195],{"class":83},[66,806,198],{"class":79},[66,808,809],{"class":83}," Math.",[66,811,812],{"class":182},"abs",[66,814,815],{"class":83},"(y.h ",[66,817,818],{"class":79},"-",[66,820,821],{"class":83}," y.b) ",[66,823,818],{"class":79},[66,825,809],{"class":83},[66,827,812],{"class":182},[66,829,830],{"class":83},"(x.h ",[66,832,818],{"class":79},[66,834,835],{"class":83}," x.b));\n",[66,837,838,840,843,845,847,849,851,854,856,858,861,864,867,869,872,874,877,879,882,885],{"class":68,"line":240},[66,839,137],{"class":79},[66,841,842],{"class":182}," total",[66,844,144],{"class":79},[66,846,188],{"class":83},[66,848,772],{"class":191},[66,850,383],{"class":83},[66,852,853],{"class":191},"t",[66,855,195],{"class":83},[66,857,198],{"class":79},[66,859,860],{"class":83}," Object.",[66,862,863],{"class":182},"entries",[66,865,866],{"class":83},"(r).",[66,868,767],{"class":182},[66,870,871],{"class":83},"(([",[66,873,738],{"class":191},[66,875,876],{"class":83},"]) ",[66,878,198],{"class":79},[66,880,881],{"class":83}," k.",[66,883,884],{"class":182},"endsWith",[66,886,887],{"class":83},"(t))\n",[66,889,890,892,895,897,900,903,906,908,910,913,916,919,922],{"class":68,"line":268},[66,891,730],{"class":83},[66,893,894],{"class":182},"reduce",[66,896,210],{"class":83},[66,898,899],{"class":191},"s",[66,901,902],{"class":83},", [, ",[66,904,905],{"class":191},"v",[66,907,876],{"class":83},[66,909,198],{"class":79},[66,911,912],{"class":83}," s ",[66,914,915],{"class":79},"+",[66,917,918],{"class":83}," v.brotli, ",[66,920,921],{"class":140},"0",[66,923,683],{"class":83},[66,925,926,928,931,933,935,938,941,944,947,949,951,954,956],{"class":68,"line":322},[66,927,137],{"class":79},[66,929,930],{"class":140}," jsBase",[66,932,144],{"class":79},[66,934,842],{"class":182},[66,936,937],{"class":83},"(base, ",[66,939,940],{"class":90},"'.js'",[66,942,943],{"class":83},"), ",[66,945,946],{"class":140},"jsHead",[66,948,144],{"class":79},[66,950,842],{"class":182},[66,952,953],{"class":83},"(head, ",[66,955,940],{"class":90},[66,957,683],{"class":83},[66,959,960,963,966,968,971,974,977,980,983,985,988],{"class":68,"line":337},[66,961,962],{"class":79},"let",[66,964,965],{"class":83}," md ",[66,967,401],{"class":79},[66,969,970],{"class":90}," `### Asset size changes (brotli)",[66,972,973],{"class":140},"\\n\\n",[66,975,976],{"class":90},"| Asset | main | this PR | Δ |",[66,978,979],{"class":140},"\\n",[66,981,982],{"class":90},"|---|---|---|---|",[66,984,979],{"class":140},[66,986,987],{"class":90},"`",[66,989,94],{"class":83},[66,991,992,995,997,999,1002,1005,1008,1011,1013,1015,1017,1020],{"class":68,"line":395},[66,993,994],{"class":79},"for",[66,996,188],{"class":83},[66,998,137],{"class":79},[66,1000,1001],{"class":140}," r",[66,1003,1004],{"class":79}," of",[66,1006,1007],{"class":83}," rows.",[66,1009,1010],{"class":182},"slice",[66,1012,356],{"class":83},[66,1014,921],{"class":140},[66,1016,383],{"class":83},[66,1018,1019],{"class":140},"15",[66,1021,1022],{"class":83},"))\n",[66,1024,1025,1028,1031,1034,1037,1040,1042,1044,1046,1049,1051,1054,1057,1059,1061,1063,1066,1068,1071,1073,1075,1077,1079,1082,1084,1086,1088,1090,1092,1095,1097,1099,1101,1104,1107,1110,1113,1115,1117,1119,1121,1123,1126,1128,1130,1132,1134,1137,1139,1141],{"class":68,"line":406},[66,1026,1027],{"class":83},"  md ",[66,1029,1030],{"class":79},"+=",[66,1032,1033],{"class":90}," `| ",[66,1035,1036],{"class":140},"\\`",[66,1038,1039],{"class":90},"${",[66,1041,772],{"class":83},[66,1043,25],{"class":90},[66,1045,738],{"class":83},[66,1047,1048],{"class":90},"}",[66,1050,1036],{"class":140},[66,1052,1053],{"class":90}," | ${",[66,1055,1056],{"class":182},"kb",[66,1058,356],{"class":90},[66,1060,772],{"class":83},[66,1062,25],{"class":90},[66,1064,1065],{"class":83},"b",[66,1067,378],{"class":90},[66,1069,1070],{"class":90},"} KB | ${",[66,1072,1056],{"class":182},[66,1074,356],{"class":90},[66,1076,772],{"class":83},[66,1078,25],{"class":90},[66,1080,1081],{"class":83},"h",[66,1083,378],{"class":90},[66,1085,1070],{"class":90},[66,1087,772],{"class":83},[66,1089,25],{"class":90},[66,1091,1081],{"class":83},[66,1093,1094],{"class":79}," >",[66,1096,1001],{"class":83},[66,1098,25],{"class":90},[66,1100,1065],{"class":83},[66,1102,1103],{"class":79}," ?",[66,1105,1106],{"class":90}," '+'",[66,1108,1109],{"class":79}," :",[66,1111,1112],{"class":90}," ''}${",[66,1114,1056],{"class":182},[66,1116,356],{"class":90},[66,1118,772],{"class":83},[66,1120,25],{"class":90},[66,1122,1081],{"class":83},[66,1124,1125],{"class":79}," -",[66,1127,1001],{"class":83},[66,1129,25],{"class":90},[66,1131,1065],{"class":83},[66,1133,378],{"class":90},[66,1135,1136],{"class":90},"} KB |",[66,1138,979],{"class":140},[66,1140,987],{"class":90},[66,1142,94],{"class":83},[66,1144,1145,1148,1150,1153,1155,1158,1160,1162,1165,1167,1170,1172,1174,1176,1178,1181,1183,1185],{"class":68,"line":418},[66,1146,1147],{"class":83},"md ",[66,1149,1030],{"class":79},[66,1151,1152],{"class":90}," `",[66,1154,979],{"class":140},[66,1156,1157],{"class":90},"**Total JS:** ${",[66,1159,1056],{"class":182},[66,1161,356],{"class":90},[66,1163,1164],{"class":83},"jsBase",[66,1166,378],{"class":90},[66,1168,1169],{"class":90},"} KB → ${",[66,1171,1056],{"class":182},[66,1173,356],{"class":90},[66,1175,946],{"class":83},[66,1177,378],{"class":90},[66,1179,1180],{"class":90},"} KB",[66,1182,979],{"class":140},[66,1184,987],{"class":90},[66,1186,94],{"class":83},[66,1188,1189,1192,1195],{"class":68,"line":440},[66,1190,1191],{"class":83},"console.",[66,1193,1194],{"class":182},"log",[66,1196,1197],{"class":83},"(md);\n",[66,1199,1200,1203,1206,1209,1212,1215,1217,1220,1223,1225,1228,1231,1233,1236],{"class":68,"line":473},[66,1201,1202],{"class":79},"if",[66,1204,1205],{"class":83}," (jsHead ",[66,1207,1208],{"class":79},">",[66,1210,1211],{"class":140}," 60",[66,1213,1214],{"class":79}," *",[66,1216,670],{"class":140},[66,1218,1219],{"class":83},") { console.",[66,1221,1222],{"class":182},"error",[66,1224,356],{"class":83},[66,1226,1227],{"class":90},"'JS total over 60 KB budget'",[66,1229,1230],{"class":83},"); process.exitCode ",[66,1232,401],{"class":79},[66,1234,1235],{"class":140}," 1",[66,1237,1238],{"class":83},"; }\n",[57,1240,1244],{"className":1241,"code":1242,"language":1243,"meta":62,"style":62},"language-yaml shiki shiki-themes github-light github-dark","# .github\u002Fworkflows\u002Fsize.yml (excerpt)\n- run: npm run build && node scripts\u002Fsize-report.mjs dist\n- uses: dawidd6\u002Faction-download-artifact@v6\n  with: { workflow: size.yml, branch: main, name: size-report, path: base }\n- id: diff\n  run: node scripts\u002Fsize-diff.mjs > comment.md\n- uses: marocchino\u002Fsticky-pull-request-comment@v2\n  if: always()\n  with: { path: comment.md }\n","yaml",[45,1245,1246,1251,1266,1278,1326,1338,1348,1359,1368],{"__ignoreMap":62},[66,1247,1248],{"class":68,"line":69},[66,1249,1250],{"class":72},"# .github\u002Fworkflows\u002Fsize.yml (excerpt)\n",[66,1252,1253,1256,1260,1263],{"class":68,"line":76},[66,1254,1255],{"class":83},"- ",[66,1257,1259],{"class":1258},"s9eBZ","run",[66,1261,1262],{"class":83},": ",[66,1264,1265],{"class":90},"npm run build && node scripts\u002Fsize-report.mjs dist\n",[66,1267,1268,1270,1273,1275],{"class":68,"line":97},[66,1269,1255],{"class":83},[66,1271,1272],{"class":1258},"uses",[66,1274,1262],{"class":83},[66,1276,1277],{"class":90},"dawidd6\u002Faction-download-artifact@v6\n",[66,1279,1280,1283,1286,1289,1291,1294,1296,1299,1301,1303,1305,1308,1310,1313,1315,1318,1320,1323],{"class":68,"line":112},[66,1281,1282],{"class":1258},"  with",[66,1284,1285],{"class":83},": { ",[66,1287,1288],{"class":1258},"workflow",[66,1290,1262],{"class":83},[66,1292,1293],{"class":90},"size.yml",[66,1295,383],{"class":83},[66,1297,1298],{"class":1258},"branch",[66,1300,1262],{"class":83},[66,1302,566],{"class":90},[66,1304,383],{"class":83},[66,1306,1307],{"class":1258},"name",[66,1309,1262],{"class":83},[66,1311,1312],{"class":90},"size-report",[66,1314,383],{"class":83},[66,1316,1317],{"class":1258},"path",[66,1319,1262],{"class":83},[66,1321,1322],{"class":90},"base",[66,1324,1325],{"class":83}," }\n",[66,1327,1328,1330,1333,1335],{"class":68,"line":127},[66,1329,1255],{"class":83},[66,1331,1332],{"class":1258},"id",[66,1334,1262],{"class":83},[66,1336,1337],{"class":90},"diff\n",[66,1339,1340,1343,1345],{"class":68,"line":134},[66,1341,1342],{"class":1258},"  run",[66,1344,1262],{"class":83},[66,1346,1347],{"class":90},"node scripts\u002Fsize-diff.mjs > comment.md\n",[66,1349,1350,1352,1354,1356],{"class":68,"line":164},[66,1351,1255],{"class":83},[66,1353,1272],{"class":1258},[66,1355,1262],{"class":83},[66,1357,1358],{"class":90},"marocchino\u002Fsticky-pull-request-comment@v2\n",[66,1360,1361,1363,1365],{"class":68,"line":177},[66,1362,243],{"class":1258},[66,1364,1262],{"class":83},[66,1366,1367],{"class":90},"always()\n",[66,1369,1370,1372,1374,1376,1378,1381],{"class":68,"line":223},[66,1371,1282],{"class":1258},[66,1373,1285],{"class":83},[66,1375,1317],{"class":1258},[66,1377,1262],{"class":83},[66,1379,1380],{"class":90},"comment.md",[66,1382,1325],{"class":83},[14,1384,1385,1386,1388,1389,1392,1393,1395],{},"On pushes to ",[45,1387,566],{},", the same workflow uploads ",[45,1390,1391],{},"size-report.json"," as the ",[45,1394,1312],{}," artifact, so the next pull request has a fresh baseline. The sticky comment updates in place on every push instead of stacking new comments.",[1397,1398,1399,1551],"figure",{},[1400,1401,1408,1409,1408,1413,1408,1417,1408,1423,1408,1536],"svg",{"viewBox":1402,"role":1403,"ariaLabelledBy":1404,"xmlns":1407},"0 0 760 290","img",[1405,1406],"tbs-flow-title","tbs-flow-desc","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","\n  ",[1410,1411,1412],"title",{"id":1405},"How the size check compares a pull request with main",[1414,1415,1416],"desc",{"id":1406},"Builds of main upload a size report artifact. A pull request build produces its own size report, downloads main's report, diffs the two by hash-stripped filename, posts a sticky comment listing changed assets, and fails if a budget is exceeded. The whole job takes about ten seconds after the build.",[1418,1419],"rect",{"x":921,"y":921,"width":1420,"height":1421,"fill":1422},"760","290","#ffffff",[1424,1425,1427,1428,1427,1436,1427,1447,1427,1453,1427,1459,1427,1463,1427,1467,1427,1470,1427,1476,1427,1480,1427,1482,1427,1488,1427,1491,1427,1494,1427,1501,1427,1506,1427,1511,1427,1515,1408],"g",{"style":1426},"font-family:system-ui, sans-serif;font-size:12px","\n    ",[1429,1430,1435],"text",{"x":1431,"y":1432,"fill":1433,"style":1434},"380","28","#1f2937","font-size:16px;font-weight:700;text-anchor:middle","Two reports, one diff, ten seconds",[1418,1437],{"x":1438,"y":1439,"width":1440,"height":1441,"rx":1442,"fill":1443,"opacity":1444,"stroke":1445,"style":1446},"30","60","170","54","10","#8ac926","0.16","#5a8a16","stroke-width:1.5px",[1429,1448,1452],{"x":1449,"y":1450,"fill":1433,"style":1451},"115","84","font-weight:700;text-anchor:middle","push to main",[1429,1454,1458],{"x":1449,"y":1455,"fill":1456,"style":1457},"102","#556071","font-size:11px;text-anchor:middle","build + size report",[1418,1460],{"x":1438,"y":1440,"width":1440,"height":1441,"rx":1442,"fill":1461,"opacity":1462,"stroke":1461,"style":1446},"#1982c4","0.14",[1429,1464,1466],{"x":1449,"y":1465,"fill":1433,"style":1451},"194","pull request",[1429,1468,1458],{"x":1449,"y":1469,"fill":1456,"style":1457},"212",[1418,1471],{"x":1472,"y":1439,"width":1473,"height":1441,"rx":1442,"fill":1474,"stroke":1475,"style":1446},"250","160","#f8fafc","#d9e2ef",[1429,1477,1479],{"x":1478,"y":1450,"fill":1433,"style":1451},"330","artifact",[1429,1481,1391],{"x":1478,"y":1455,"fill":1456,"style":1457},[1418,1483],{"x":1484,"y":1440,"width":1473,"height":1441,"rx":1442,"fill":1485,"opacity":1486,"stroke":1487,"style":1446},"300","#ffca3a","0.26","#a97b00",[1429,1489,1490],{"x":1431,"y":1465,"fill":1433,"style":1451},"diff by key",[1429,1492,1493],{"x":1431,"y":1469,"fill":1456,"style":1457},"hash stripped",[1418,1495],{"x":1496,"y":1497,"width":1498,"height":1499,"rx":1442,"fill":1500,"opacity":1462,"stroke":1500,"style":1446},"510","140","220","44","#6a4c93",[1429,1502,1505],{"x":1503,"y":1504,"fill":1433,"style":1451},"620","167","sticky PR comment",[1418,1507],{"x":1496,"y":1508,"width":1498,"height":1499,"rx":1442,"fill":1509,"opacity":1462,"stroke":1510,"style":1446},"204","#ff595e","#d83b41",[1429,1512,1514],{"x":1503,"y":1513,"fill":1433,"style":1451},"231","fail if over budget",[1424,1516,1519,1520,1519,1524,1519,1527,1519,1530,1519,1533,1427],{"stroke":1456,"fill":1517,"style":1518},"none","stroke-width:2px","\n      ",[1317,1521],{"d":1522,"style":1523},"M202 87 L246 87","marker-end:url(#tbs-arrow)",[1317,1525],{"d":1526,"style":1523},"M330 116 L370 166",[1317,1528],{"d":1529,"style":1523},"M202 197 L296 197",[1317,1531],{"d":1532,"style":1523},"M462 190 L506 164",[1317,1534],{"d":1535,"style":1523},"M462 206 L506 224",[1537,1538,1427,1539,1408],"defs",{},[1540,1541,1519,1548,1427],"marker",{"id":1542,"viewBox":1543,"refX":1544,"refY":1545,"markerWidth":1546,"markerHeight":1546,"orient":1547},"tbs-arrow","0 0 10 10","8","5","7","auto-start-reverse",[1317,1549],{"d":1550,"fill":1456},"M0 0 L10 5 L0 10 z",[1552,1553,1554],"figcaption",{},"Because main uploads a fresh report on every push, the pull request always compares against what is actually live.",[27,1556,1558],{"id":1557},"step-3-budget-per-template-not-just-in-total","Step 3: Budget per Template, Not Just in Total",[14,1560,1561],{},"A site-wide JavaScript total hides where bytes land. A 30 KB search dialog that loads only on the docs template is fine; the same 30 KB on every page is not. Build a per-template view by parsing one representative HTML file per template and summing the sizes of the scripts and stylesheets it references:",[57,1563,1565],{"className":59,"code":1564,"language":61,"meta":62,"style":62},"\u002F\u002F scripts\u002Ftemplate-weights.mjs (excerpt)\nconst TEMPLATES = { home: 'dist\u002Findex.html', guide: 'dist\u002Fguides\u002Fdeploy\u002Findex.html',\n                    post: 'dist\u002Fblog\u002F2026\u002Flaunch\u002Findex.html' };\nfor (const [name, file] of Object.entries(TEMPLATES)) {\n  const html = readFileSync(file, 'utf8');\n  const refs = [...html.matchAll(\u002F(?:src|href)=\"\\\u002F([^\"]+\\.(?:js|css))\"\u002Fg)].map((m) => m[1]);\n  const bytes = refs.reduce((s, r) => s + (report[r.replace(HASH, '')]?.brotli ?? 0), 0);\n  console.log(`${name}: ${(bytes \u002F 1024).toFixed(1)} KB`);\n}\n",[45,1566,1567,1572,1595,1606,1640,1659,1742,1799,1840],{"__ignoreMap":62},[66,1568,1569],{"class":68,"line":69},[66,1570,1571],{"class":72},"\u002F\u002F scripts\u002Ftemplate-weights.mjs (excerpt)\n",[66,1573,1574,1576,1579,1581,1584,1587,1590,1593],{"class":68,"line":76},[66,1575,137],{"class":79},[66,1577,1578],{"class":140}," TEMPLATES",[66,1580,144],{"class":79},[66,1582,1583],{"class":83}," { home: ",[66,1585,1586],{"class":90},"'dist\u002Findex.html'",[66,1588,1589],{"class":83},", guide: ",[66,1591,1592],{"class":90},"'dist\u002Fguides\u002Fdeploy\u002Findex.html'",[66,1594,415],{"class":83},[66,1596,1597,1600,1603],{"class":68,"line":97},[66,1598,1599],{"class":83},"                    post: ",[66,1601,1602],{"class":90},"'dist\u002Fblog\u002F2026\u002Flaunch\u002Findex.html'",[66,1604,1605],{"class":83}," };\n",[66,1607,1608,1610,1612,1614,1616,1618,1620,1623,1625,1628,1630,1632,1634,1637],{"class":68,"line":112},[66,1609,994],{"class":79},[66,1611,188],{"class":83},[66,1613,137],{"class":79},[66,1615,695],{"class":83},[66,1617,1307],{"class":140},[66,1619,383],{"class":83},[66,1621,1622],{"class":140},"file",[66,1624,153],{"class":83},[66,1626,1627],{"class":79},"of",[66,1629,860],{"class":83},[66,1631,863],{"class":182},[66,1633,356],{"class":83},[66,1635,1636],{"class":140},"TEMPLATES",[66,1638,1639],{"class":83},")) {\n",[66,1641,1642,1644,1647,1649,1651,1654,1657],{"class":68,"line":127},[66,1643,226],{"class":79},[66,1645,1646],{"class":140}," html",[66,1648,144],{"class":79},[66,1650,332],{"class":182},[66,1652,1653],{"class":83},"(file, ",[66,1655,1656],{"class":90},"'utf8'",[66,1658,683],{"class":83},[66,1660,1661,1663,1666,1668,1670,1672,1675,1678,1680,1682,1685,1687,1690,1693,1695,1698,1701,1704,1706,1708,1711,1713,1716,1718,1720,1723,1725,1727,1730,1732,1734,1737,1739],{"class":68,"line":134},[66,1662,226],{"class":79},[66,1664,1665],{"class":140}," refs",[66,1667,144],{"class":79},[66,1669,695],{"class":83},[66,1671,707],{"class":79},[66,1673,1674],{"class":83},"html.",[66,1676,1677],{"class":182},"matchAll",[66,1679,356],{"class":83},[66,1681,278],{"class":90},[66,1683,1684],{"class":285},"(?:src",[66,1686,294],{"class":79},[66,1688,1689],{"class":285},"href)=\"",[66,1691,1692],{"class":281},"\\\u002F",[66,1694,356],{"class":285},[66,1696,1697],{"class":140},"[",[66,1699,1700],{"class":79},"^",[66,1702,1703],{"class":140},"\"]",[66,1705,915],{"class":79},[66,1707,282],{"class":281},[66,1709,1710],{"class":285},"(?:js",[66,1712,294],{"class":79},[66,1714,1715],{"class":285},"css))\"",[66,1717,278],{"class":90},[66,1719,1424],{"class":79},[66,1721,1722],{"class":83},")].",[66,1724,733],{"class":182},[66,1726,210],{"class":83},[66,1728,1729],{"class":191},"m",[66,1731,195],{"class":83},[66,1733,198],{"class":79},[66,1735,1736],{"class":83}," m[",[66,1738,680],{"class":140},[66,1740,1741],{"class":83},"]);\n",[66,1743,1744,1746,1749,1751,1754,1756,1758,1760,1762,1764,1766,1768,1770,1772,1775,1777,1779,1782,1784,1786,1789,1791,1793,1795,1797],{"class":68,"line":164},[66,1745,226],{"class":79},[66,1747,1748],{"class":140}," bytes",[66,1750,144],{"class":79},[66,1752,1753],{"class":83}," refs.",[66,1755,894],{"class":182},[66,1757,210],{"class":83},[66,1759,899],{"class":191},[66,1761,383],{"class":83},[66,1763,772],{"class":191},[66,1765,195],{"class":83},[66,1767,198],{"class":79},[66,1769,912],{"class":83},[66,1771,915],{"class":79},[66,1773,1774],{"class":83}," (report[r.",[66,1776,353],{"class":182},[66,1778,356],{"class":83},[66,1780,1781],{"class":140},"HASH",[66,1783,383],{"class":83},[66,1785,386],{"class":90},[66,1787,1788],{"class":83},")]?.brotli ",[66,1790,156],{"class":79},[66,1792,750],{"class":140},[66,1794,943],{"class":83},[66,1796,921],{"class":140},[66,1798,683],{"class":83},[66,1800,1801,1804,1806,1808,1811,1813,1816,1818,1821,1823,1825,1827,1829,1831,1833,1835,1838],{"class":68,"line":177},[66,1802,1803],{"class":83},"  console.",[66,1805,1194],{"class":182},[66,1807,356],{"class":83},[66,1809,1810],{"class":90},"`${",[66,1812,1307],{"class":83},[66,1814,1815],{"class":90},"}: ${",[66,1817,356],{"class":90},[66,1819,1820],{"class":83},"bytes",[66,1822,446],{"class":79},[66,1824,670],{"class":140},[66,1826,48],{"class":90},[66,1828,675],{"class":182},[66,1830,356],{"class":90},[66,1832,680],{"class":140},[66,1834,378],{"class":90},[66,1836,1837],{"class":90},"} KB`",[66,1839,683],{"class":83},[66,1841,1842],{"class":68,"line":223},[66,1843,1844],{"class":83},"}\n",[14,1846,1847],{},"This catches module preloads and islands that the template actually loads, and it is the same template list Lighthouse CI tests, so the two checks speak the same language. For Astro sites, note that island scripts load on interaction or visibility; count them separately as \"deferred\" so an eager and a lazy 20 KB are not treated as equal.",[1397,1849,1850,1937],{},[1400,1851,1408,1856,1408,1859,1408,1862,1408,1864],{"viewBox":1852,"role":1403,"ariaLabelledBy":1853,"xmlns":1407},"0 0 760 250",[1854,1855],"tbs-tpl-title","tbs-tpl-desc",[1410,1857,1858],{"id":1854},"The same site total, split by template",[1414,1860,1861],{"id":1855},"A site-wide JavaScript total of 58 kilobytes looks acceptable. Split by template, the homepage loads 14 kilobytes eagerly, a guide loads 9 eagerly plus 31 deferred for search, and a blog post loads 9 eagerly plus 18 deferred for a comments island. Only the per-template view shows that a shared chunk grew on every page.",[1418,1863],{"x":921,"y":921,"width":1420,"height":1472,"fill":1422},[1424,1865,1427,1866,1427,1869,1427,1874,1427,1882,1427,1887,1427,1891,1427,1895,1427,1899,1427,1904,1427,1908,1427,1910,1427,1912,1427,1917,1427,1921,1427,1927,1427,1929,1427,1933,1408],{"style":1426},[1429,1867,1868],{"x":1431,"y":1432,"fill":1433,"style":1434},"What each template actually loads (KB brotli)",[1429,1870,1873],{"x":1438,"y":1871,"fill":1433,"style":1872},"76","font-weight:700","home",[1418,1875],{"x":1876,"y":1439,"width":1877,"height":1878,"rx":1879,"fill":1461,"opacity":1880,"stroke":1461,"style":1881},"130","98","24","4","0.25","stroke-width:1px",[1429,1883,1886],{"x":1884,"y":1885,"fill":1433},"238","77","14 eager",[1429,1888,1890],{"x":1438,"y":1889,"fill":1433,"style":1872},"126","guide",[1418,1892],{"x":1876,"y":1893,"width":1894,"height":1878,"rx":1879,"fill":1461,"opacity":1880,"stroke":1461,"style":1881},"110","63",[1418,1896],{"x":1897,"y":1893,"width":1898,"height":1878,"rx":1879,"fill":1443,"opacity":1880,"stroke":1445,"style":1881},"193","217",[1429,1900,1903],{"x":1901,"y":1902,"fill":1433},"420","127","9 eager + 31 deferred (search)",[1429,1905,1907],{"x":1438,"y":1906,"fill":1433,"style":1872},"176","post",[1418,1909],{"x":1876,"y":1473,"width":1894,"height":1878,"rx":1879,"fill":1461,"opacity":1880,"stroke":1461,"style":1881},[1418,1911],{"x":1897,"y":1473,"width":1889,"height":1878,"rx":1879,"fill":1443,"opacity":1880,"stroke":1445,"style":1881},[1429,1913,1916],{"x":1914,"y":1915,"fill":1433},"329","177","9 eager + 18 deferred (comments)",[1418,1918],{"x":1876,"y":1919,"width":1920,"height":1920,"fill":1461,"opacity":1880,"stroke":1461,"style":1881},"206","12",[1429,1922,1926],{"x":1923,"y":1924,"fill":1456,"style":1925},"148","216","font-size:11px","loads with the page",[1418,1928],{"x":1484,"y":1919,"width":1920,"height":1920,"fill":1443,"opacity":1880,"stroke":1445,"style":1881},[1429,1930,1932],{"x":1931,"y":1924,"fill":1456,"style":1925},"318","island, on interaction or visibility",[1429,1934,1936],{"x":1431,"y":1935,"fill":1456,"style":1457},"242","site-wide total: 58 KB — a single number that hides all of the above",[1552,1938,1939],{},"Budget eager bytes tightly per template; deferred islands can have a looser, separate limit.",[27,1941,1943],{"id":1942},"measured-impact","Measured Impact",[14,1945,1946],{},"An Astro marketing and docs site ran bundle-size comments for five months. Every pull request that changed a JavaScript or CSS asset by more than 1 KB was logged:",[1948,1949,1950,1963],"table",{},[1951,1952,1953],"thead",{},[1954,1955,1956,1960],"tr",{},[1957,1958,1959],"th",{},"Measure",[1957,1961,1962],{},"Value",[1964,1965,1966,1975,1983,1990,1998,2006],"tbody",{},[1954,1967,1968,1972],{},[1969,1970,1971],"td",{},"Pull requests with asset changes over 1 KB",[1969,1973,1974],{},"64",[1954,1976,1977,1980],{},[1969,1978,1979],{},"Of those, increases over 10 KB",[1969,1981,1982],{},"14",[1954,1984,1985,1988],{},[1969,1986,1987],{},"Increases reduced before merge after the comment",[1969,1989,491],{},[1954,1991,1992,1995],{},[1969,1993,1994],{},"Median reduction when reduced",[1969,1996,1997],{},"71% of the increase",[1954,1999,2000,2003],{},[1969,2001,2002],{},"Budget failures (60 KB JS total)",[1969,2004,2005],{},"3",[1954,2007,2008,2011],{},[1969,2009,2010],{},"Job duration after build (median)",[1969,2012,2013],{},"9 s",[1397,2015,2016,2113],{},[1400,2017,1408,2021,1408,2024,1408,2027,1408,2029],{"viewBox":1402,"role":1403,"ariaLabelledBy":2018,"xmlns":1407},[2019,2020],"tbs-fix-title","tbs-fix-desc",[1410,2022,2023],{"id":2019},"Five large increases and what the author did",[1414,2025,2026],{"id":2020},"Paired bars for five pull requests showing the increase first reported and the increase after the author responded. A date library went from 67 KB to 2 KB by using Intl.DateTimeFormat. An icon set went from 48 KB to 3 KB by importing individual icons. A syntax highlighter went from 212 KB to 0 by highlighting at build time. A carousel went from 31 KB to 14 KB with a lighter library. A form validator went from 22 KB to 22 KB and was accepted.",[1418,2028],{"x":921,"y":921,"width":1420,"height":1421,"fill":1422},[1424,2030,1427,2031,1427,2034,1427,2038,1427,2044,1427,2049,1427,2054,1427,2058,1427,2061,1427,2064,1427,2069,1427,2073,1427,2076,1427,2082,1427,2086,1427,2089,1427,2093,1427,2097,1427,2101,1427,2105,1427,2108,1408],{"style":1426},[1429,2032,2033],{"x":1431,"y":1432,"fill":1433,"style":1434},"First push vs merged (KB brotli added)",[1429,2035,2037],{"x":1438,"y":2036,"fill":1433},"70","date library",[1418,2039],{"x":2040,"y":2041,"width":2042,"height":1982,"fill":1509,"opacity":2043,"stroke":1510,"style":1881},"200","56","201","0.28",[1418,2045],{"x":2040,"y":2046,"width":2047,"height":1982,"fill":1443,"opacity":2048,"stroke":1445,"style":1881},"72","6","0.4",[1429,2050,2053],{"x":2051,"y":2052,"fill":1433,"style":1925},"410","68","67 → 2 · Intl.DateTimeFormat",[1429,2055,2057],{"x":1438,"y":2056,"fill":1433},"116","icon set",[1418,2059],{"x":2040,"y":1455,"width":2060,"height":1982,"fill":1509,"opacity":2043,"stroke":1510,"style":1881},"144",[1418,2062],{"x":2040,"y":2063,"width":430,"height":1982,"fill":1443,"opacity":2048,"stroke":1445,"style":1881},"118",[1429,2065,2068],{"x":2066,"y":2067,"fill":1433,"style":1925},"354","114","48 → 3 · per-icon imports",[1429,2070,2072],{"x":1438,"y":2071,"fill":1433},"162","syntax highlighter",[1418,2074],{"x":2040,"y":1923,"width":2075,"height":1982,"fill":1509,"opacity":2043,"stroke":1510,"style":1881},"530",[1429,2077,2081],{"x":2078,"y":1906,"fill":2079,"style":2080},"205","#3f6410","font-size:11px;font-weight:700","212 → 0 · highlighted at build time",[1429,2083,2085],{"x":1438,"y":2084,"fill":1433},"208","carousel",[1418,2087],{"x":2040,"y":1465,"width":2088,"height":1982,"fill":1509,"opacity":2043,"stroke":1510,"style":1881},"93",[1418,2090],{"x":2040,"y":2091,"width":2092,"height":1982,"fill":1443,"opacity":2048,"stroke":1445,"style":1881},"210","42",[1429,2094,2096],{"x":2095,"y":1919,"fill":1433,"style":1925},"303","31 → 14 · lighter library",[1429,2098,2100],{"x":1438,"y":2099,"fill":1433},"254","form validator",[1418,2102],{"x":2040,"y":2103,"width":2104,"height":1982,"fill":1509,"opacity":2043,"stroke":1510,"style":1881},"240","66",[1418,2106],{"x":2040,"y":2107,"width":2104,"height":1982,"fill":1485,"opacity":2048,"stroke":1487,"style":1881},"256",[1429,2109,2112],{"x":2110,"y":2111,"fill":1433,"style":1925},"276","252","22 → 22 · accepted, budget raised",[1552,2114,2115],{},"The comment rarely forced a change; it made the cost visible, and authors chose cheaper options on their own.",[14,2117,2118],{},"The largest single saving came from a syntax highlighter that would have shipped 212 KB of grammars to every docs page. Once the number appeared in the comment, the author moved highlighting to build time with Shiki, which every mainstream generator supports, and the runtime cost went to zero.",[27,2120,2122],{"id":2121},"reading-the-comment-in-review","Reading the Comment in Review",[14,2124,2125,2126,2130,2131,2134,2135,383,2138,383,2141,2144,2145,2148],{},"A size comment is only useful if reviewers know what to look for. Three patterns cover most cases. A ",[2127,2128,2129],"strong",{},"new file"," appearing in the list usually means a new dependency or a new island; ask whether it loads on every page or only where needed. A ",[2127,2132,2133],{},"shared chunk growing"," — ",[45,2136,2137],{},"vendor",[45,2139,2140],{},"client",[45,2142,2143],{},"index"," — means a dependency moved from one page's bundle into code every page loads; that is often an accidental import in a layout component. A ",[2127,2146,2147],{},"CSS file growing"," by more than a kilobyte or two usually means a utility framework's purge step missed a new content path, or a component library's full stylesheet was imported. Each has a different fix, and naming them in the contributing guide shortens review conversations considerably.",[27,2150,2152],{"id":2151},"pitfalls-rollback","Pitfalls & Rollback",[32,2154,2155,2161,2167,2173,2179,2185],{},[35,2156,2157,2160],{},[2127,2158,2159],{},"Comparing raw sizes."," Readers download compressed bytes. Compare brotli or gzip, whichever your host serves.",[35,2162,2163,2166],{},[2127,2164,2165],{},"Hash-sensitive keys."," Without stripping hashes, every file looks new on every build. Normalise names before diffing.",[35,2168,2169,2172],{},[2127,2170,2171],{},"Stale baselines."," If main's report is not uploaded on every push, pull requests compare against an old build and report other people's changes. Upload on every main build.",[35,2174,2175,2178],{},[2127,2176,2177],{},"Only a site-wide total."," Per-template weights show who pays for a change; a total hides it.",[35,2180,2181,2184],{},[2127,2182,2183],{},"Ignoring deletions."," A pull request that shrinks assets deserves the same visibility; celebrate it in the comment so reductions are noticed and not quietly reversed later.",[35,2186,2187,2190],{},[2127,2188,2189],{},"Rollback:"," the check is two scripts and one workflow. Removing the budget line from the diff script turns failures into comments only; removing the workflow removes it entirely.",[27,2192,2194],{"id":2193},"conclusion","Conclusion",[14,2196,2197],{},"Bundle-size tracking is the cheapest performance check a static site can run: ten seconds after the build, deterministic, no browser, and precise about which file grew. Posting the diff on every pull request changed behaviour more than failing builds did — eleven of fourteen large increases were cut before merge, by a median of 71%, because authors could finally see what their import cost.",[27,2199,2201],{"id":2200},"faq","FAQ",[2203,2204,2206],"h3",{"id":2205},"why-track-bundle-size-if-lighthouse-ci-already-runs","Why track bundle size if Lighthouse CI already runs?",[14,2208,2209],{},"Bundle-size checks run in seconds on the build output, need no browser or deploy, and never vary between runs. They catch the most common regression, an added dependency, before Lighthouse even starts, and they tell you exactly which file grew.",[2203,2211,2213],{"id":2212},"should-i-compare-gzip-or-brotli-sizes","Should I compare gzip or brotli sizes?",[14,2215,2216],{},"Compare whichever your host actually serves. Cloudflare, Netlify and Vercel serve brotli to modern browsers, so brotli is the realistic number. Report both if some readers get gzip, and budget on the one most readers receive.",[2203,2218,2220],{"id":2219},"how-do-i-compare-against-the-base-branch-without-rebuilding-it","How do I compare against the base branch without rebuilding it?",[14,2222,2223],{},"Cache the size report from each build of the main branch as an artifact or in a small JSON file on a storage bucket. The pull request job downloads the latest main report and diffs against it.",[2203,2225,2227],{"id":2226},"what-about-pages-that-load-different-bundles","What about pages that load different bundles?",[14,2229,2230],{},"Group assets by the pages that load them. A per-template report, built from each template's HTML and the scripts it references, shows what a reader of that template downloads, which is more useful than a site-wide total.",[27,2232,2234],{"id":2233},"related","Related",[32,2236,2237,2246,2253,2260,2267],{},[35,2238,2239,2242,2243,2245],{},[2127,2240,2241],{},"Parent:"," ",[21,2244,24],{"href":23}," — where bundle size fits among the checks.",[35,2247,2248,2252],{},[21,2249,2251],{"href":2250},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fhow-to-reduce-bundle-size-in-eleventy-builds\u002F","How to Reduce Bundle Size in Eleventy Builds"," — what to do when the number is too high.",[35,2254,2255,2259],{},[21,2256,2258],{"href":2257},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fwriting-a-performance-budget-that-fails-builds\u002F","Writing a Performance Budget That Fails Builds"," — choosing the 60 KB line.",[35,2261,2262,2266],{},[21,2263,2265],{"href":2264},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components\u002F","Replacing React Islands with Web Components"," — a larger structural reduction.",[35,2268,2269,2273],{},[21,2270,2272],{"href":2271},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fcaching-node-modules-in-github-actions-for-faster-ssg-builds\u002F","Caching node_modules in GitHub Actions for Faster SSG Builds"," — keeping the build that feeds this check fast.",[2275,2276,2277],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .snhLl, html code.shiki .snhLl{--shiki-default:#22863A;--shiki-default-font-weight:bold;--shiki-dark:#85E89D;--shiki-dark-font-weight:bold}html pre.shiki code .sA_wV, html code.shiki .sA_wV{--shiki-default:#032F62;--shiki-dark:#DBEDFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}",{"title":62,"searchDepth":76,"depth":76,"links":2279},[2280,2281,2282,2283,2284,2285,2286,2287,2288,2294],{"id":29,"depth":76,"text":30},{"id":51,"depth":76,"text":52},{"id":559,"depth":76,"text":560},{"id":1557,"depth":76,"text":1558},{"id":1942,"depth":76,"text":1943},{"id":2121,"depth":76,"text":2122},{"id":2151,"depth":76,"text":2152},{"id":2193,"depth":76,"text":2194},{"id":2200,"depth":76,"text":2201,"children":2289},[2290,2291,2292,2293],{"id":2205,"depth":97,"text":2206},{"id":2212,"depth":97,"text":2213},{"id":2219,"depth":97,"text":2220},{"id":2226,"depth":97,"text":2227},{"id":2233,"depth":76,"text":2234},[2296,2298,2301,2302],{"name":2297,"item":278},"Home",{"name":2299,"item":2300},"Performance Optimization & Core Web Vitals for SSGs","\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002F",{"name":24,"item":23},{"name":5,"item":2303},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Ftracking-bundle-size-per-pull-request\u002F","2026-09-18","Compare every build's JavaScript, CSS and font output against the base branch, post the diff on the pull request and fail on budget breaches in seconds.","md",[2308,2309,2310,2311],{"q":2206,"a":2209},{"q":2213,"a":2216},{"q":2220,"a":2223},{"q":2227,"a":2230},{},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Ftracking-bundle-size-per-pull-request",{"title":5,"description":2305},"performance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Ftracking-bundle-size-per-pull-request\u002Findex","article","BrOHYK-qNH81RrPrWyzXkKnPDa4pGKzQX4d_djSUl-g",[2319,2322,2325,2328,2331,2334,2337,2340,2343,2346,2349,2352,2355,2358,2361,2364,2367,2370,2373,2376,2379,2382,2385,2388,2391,2394,2397,2400,2403,2406,2409,2412,2415,2418,2421,2424,2427,2430,2433,2436,2439,2442,2445,2448,2451,2454,2457,2460,2463,2466,2469,2472,2475,2478,2481,2484,2487,2490,2493,2496,2499,2502,2505,2508,2511,2514,2517,2520,2523,2526,2529,2532,2535,2538,2541,2544,2547,2550,2553,2556,2559,2562,2565,2568,2570,2573,2576,2578,2581,2584,2587,2590,2593,2596,2599,2601,2604,2607,2610,2611,2613,2616,2619,2622,2625,2628,2631,2634,2637,2640,2643,2646,2649,2652,2655,2658,2661,2664,2667,2670,2673,2676,2679,2682,2685,2688,2691,2694,2697,2700,2703,2706,2709,2712,2715,2718,2721,2724,2727,2730,2733,2736,2739,2742,2745,2748,2751,2754,2757,2760,2763,2766,2769,2772,2775,2778,2781,2784,2787,2790,2793,2796,2799,2802,2805,2808,2811,2814,2817,2820,2823,2826,2829,2832,2835,2838,2841,2844,2847,2850,2853,2856,2859],{"path":2320,"title":2321},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fastro-vs-eleventy-build-times-at-10000-pages","Astro vs Eleventy Build Times at 10,000 Pages",{"path":2323,"title":2324},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fchoosing-between-astro-and-eleventy-for-large-docs","Astro vs Eleventy for Large Docs (1000+ Pages)",{"path":2326,"title":2327},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fcontent-collections-vs-eleventy-data-cascade","Content Collections vs the Eleventy Data Cascade",{"path":2329,"title":2330},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites","Astro vs Eleventy for Documentation Sites",{"path":2332,"title":2333},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fshortcodes-vs-components-for-docs-authors","Shortcodes vs Components for Docs Authors",{"path":2335,"title":2336},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsidebar-navigation-in-astro-and-eleventy","Sidebar Navigation in Astro and Eleventy",{"path":2338,"title":2339},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fcustomizing-starlight-without-forking-the-theme","Customizing Starlight Without Forking the Theme",{"path":2341,"title":2342},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fdocusaurus-vs-starlight-for-product-documentation","Docusaurus vs Starlight for Product Documentation",{"path":2344,"title":2345},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress","Docs Frameworks: Docusaurus, Starlight and VitePress",{"path":2347,"title":2348},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmdx-vs-markdoc-for-docs-content","MDX vs Markdoc for Docs Content",{"path":2350,"title":2351},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-from-mkdocs-to-starlight","Migrating from MkDocs to Starlight",{"path":2353,"title":2354},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioned-documentation-with-docusaurus","Versioned Documentation with Docusaurus",{"path":2356,"title":2357},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-for-library-documentation","VitePress for Library Documentation",{"path":2359,"title":2360},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fhow-to-benchmark-hugo-vs-astro-build-speeds","How to Benchmark Hugo vs Astro Build Speeds",{"path":2362,"title":2363},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fhugo-partialcached-for-faster-builds","Hugo partialCached for Faster Builds",{"path":2365,"title":2366},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories","Hugo Build Times for Large Repositories",{"path":2368,"title":2369},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fprofiling-hugo-templates-with-template-metrics","Profiling Hugo Templates With Template Metrics",{"path":2371,"title":2372},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Freducing-hugo-memory-usage-on-ci-runners","Reducing Hugo Memory Usage on CI Runners",{"path":2374,"title":2375},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fspeeding-up-hugo-builds-with-render-hooks-and-caching","Speeding Up Hugo Builds with Render Hooks & Caching",{"path":2377,"title":2378},"\u002Fchoosing-the-right-static-site-generator-for-production","Choosing the Right Static Site Generator for Production",{"path":2380,"title":2381},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Feleventy-vs-jekyll-for-markdown-heavy-blogs","Eleventy vs Jekyll for Markdown-Heavy Blogs",{"path":2383,"title":2384},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem","Jekyll Plugin Ecosystem",{"path":2386,"title":2387},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Freplacing-jekyll-plugins-when-migrating-to-eleventy","Replacing Jekyll Plugins When Migrating to Eleventy",{"path":2389,"title":2390},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Frunning-jekyll-on-github-pages-without-plugins","Running Jekyll on GitHub Pages Without Plugins",{"path":2392,"title":2393},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fspeeding-up-slow-jekyll-builds","Speeding Up Slow Jekyll Builds",{"path":2395,"title":2396},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fupgrading-jekyll-and-ruby-versions-safely","Upgrading Jekyll and Ruby Versions Safely",{"path":2398,"title":2399},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fconverting-front-matter-at-scale-during-migration","Converting Front Matter at Scale During Migration",{"path":2401,"title":2402},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators","Migrating Between Static Site Generators",{"path":2404,"title":2405},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fkeeping-redirects-working-after-an-ssg-migration","Keeping Redirects Working After an SSG Migration",{"path":2407,"title":2408},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-a-docs-site-from-jekyll-to-hugo","Migrating a Docs Site From Jekyll to Hugo",{"path":2410,"title":2411},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-gatsby-to-astro","Migrating from Gatsby to Astro",{"path":2413,"title":2414},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-hugo-to-astro-without-breaking-urls","Migrating From Hugo to Astro Without Breaking URLs",{"path":2416,"title":2417},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-wordpress-to-a-static-site-generator","Migrating WordPress to a Static Site Generator",{"path":2419,"title":2420},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fporting-shortcodes-and-includes-between-generators","Porting Shortcodes and Includes Between Generators",{"path":2422,"title":2423},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fhandling-dynamic-routes-in-nextjs-static-export","Handling Dynamic Routes in Next.js Static Export",{"path":2425,"title":2426},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites","Next.js Static Export for Content Sites",{"path":2428,"title":2429},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fmigrating-from-gatsby-to-nextjs-static-export","Migrating from Gatsby to Next.js Static Export",{"path":2431,"title":2432},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fnextjs-app-router-static-export-limitations","Next.js App Router Static Export Limitations",{"path":2434,"title":2435},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fnextjs-static-export-vs-astro-for-marketing-sites","Next.js Static Export vs Astro for Marketing",{"path":2437,"title":2438},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Foptimizing-images-in-nextjs-static-export","Optimizing Images in Next.js Static Export",{"path":2440,"title":2441},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fadding-pagefind-to-an-astro-site","Adding Pagefind to an Astro Site",{"path":2443,"title":2444},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy","Building a Lunr Index at Build Time in Eleventy",{"path":2446,"title":2447},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites","Search for Static Sites",{"path":2449,"title":2450},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind","Indexing Hugo Sites with Pagefind",{"path":2452,"title":2453},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites","Multilingual Search on Static Sites",{"path":2455,"title":2456},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch","Pagefind vs Algolia DocSearch",{"path":2458,"title":2459},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fsearch-index-size-budgets-for-large-docs","Search Index Size Budgets for Large Docs",{"path":2461,"title":2462},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fbest-ssg-for-technical-writers-without-coding-experience","Best SSG for Non-Developer Technical Writers",{"path":2464,"title":2465},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fchoosing-an-ssg-for-api-reference-documentation","Choosing an SSG for API Reference Documentation",{"path":2467,"title":2468},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fevaluating-ssg-accessibility-defaults","Evaluating SSG Accessibility Defaults",{"path":2470,"title":2471},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix","SSG Framework Selection Matrix",{"path":2473,"title":2474},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fpicking-an-ssg-for-a-multi-language-documentation-site","Picking an SSG for a Multi-Language Docs Site",{"path":2476,"title":2477},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fssg-selection-checklist-for-engineering-teams","SSG Selection Checklist for Engineering Teams",{"path":2479,"title":2480},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Ftotal-cost-of-ownership-for-static-site-generators","Total Cost of Ownership for Static Site Generators",{"path":2482,"title":2483},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fcache-busting-with-content-hashed-filenames","Cache Busting with Content-Hashed Filenames",{"path":2485,"title":2486},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs","CDN Caching Rules for SSGs",{"path":2488,"title":2489},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fpurging-the-cdn-cache-after-a-static-deploy","Purging the CDN Cache After a Static Deploy",{"path":2491,"title":2492},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fsetting-cache-control-headers-on-cloudflare-pages","Cache-Control Headers on Cloudflare Pages",{"path":2494,"title":2495},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fsetting-up-proper-cache-headers-on-netlify","Proper Cache Headers on Netlify for SSGs",{"path":2497,"title":2498},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fstale-while-revalidate-for-static-html","Stale-While-Revalidate for Static HTML",{"path":2500,"title":2501},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Feliminating-layout-shift-from-web-fonts","Eliminating Layout Shift From Web Fonts",{"path":2503,"title":2504},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-cookie-banners","Fixing CLS from Cookie Banners",{"path":2506,"title":2507},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-late-loading-embeds","Fixing CLS From Late-Loading Embeds",{"path":2509,"title":2510},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-sticky-headers-and-anchor-links","Fixing CLS from Sticky Headers and Anchor Links",{"path":2512,"title":2513},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites","Cumulative Layout Shift Fixes for Static Sites",{"path":2515,"title":2516},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Fmeasuring-cls-in-the-field-with-web-vitals-js","Measuring CLS in the Field With web-vitals.js",{"path":2518,"title":2519},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Freserving-space-for-images-and-embeds-to-stop-layout-shift","Reserving Space for Images and Embeds",{"path":2521,"title":2522},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap","font-display: optional vs swap",{"path":2524,"title":2525},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites","Font Loading Strategies for Static Sites",{"path":2527,"title":2528},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fmetric-matched-fallback-fonts-with-size-adjust","Metric-Matched Fallback Fonts with size-adjust",{"path":2530,"title":2531},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads","Preloading Fonts Without Double Downloads",{"path":2533,"title":2534},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fself-hosting-google-fonts-to-eliminate-layout-shift","Self-Host Google Fonts to Eliminate Layout Shift",{"path":2536,"title":2537},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fsubsetting-variable-fonts-for-faster-first-render","Subsetting Variable Fonts for Faster First Render",{"path":2539,"title":2540},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fbuilding-an-image-cdn-pipeline-for-static-sites","Building an Image CDN Pipeline for Static Sites",{"path":2542,"title":2543},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fgenerating-open-graph-images-at-build-time","Generating Open Graph Images at Build Time",{"path":2545,"title":2546},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro","Image Optimization Pipelines in Astro",{"path":2548,"title":2549},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Flazy-loading-images-without-hurting-lcp","Lazy-Loading Images Without Hurting LCP",{"path":2551,"title":2552},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Foptimizing-webp-images-in-hugo-without-plugins","Optimizing WebP Images in Hugo Without Plugins",{"path":2554,"title":2555},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fresponsive-images-with-srcset-in-eleventy","Responsive Images with srcset in Eleventy",{"path":2557,"title":2558},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fserving-avif-with-fallbacks-on-static-sites","Serving AVIF With Fallbacks on Static Sites",{"path":2560,"title":2561},"\u002Fperformance-optimization-core-web-vitals-for-ssgs","Core Web Vitals Optimization for SSGs",{"path":2563,"title":2564},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fastro-islands-vs-full-hydration-performance","Astro Islands vs Full Hydration Performance",{"path":2566,"title":2567},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fdeferring-hydration-with-client-visible-in-astro","Deferring Hydration with client:visible in Astro",{"path":2569,"title":2251},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fhow-to-reduce-bundle-size-in-eleventy-builds",{"path":2571,"title":2572},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering","JavaScript Hydration & Partial Rendering",{"path":2574,"title":2575},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fmeasuring-inp-on-static-sites-with-real-user-monitoring","Measuring INP on Static Sites with RUM",{"path":2577,"title":2265},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components",{"path":2579,"title":2580},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Feliminating-render-blocking-css-on-static-sites","Eliminating Render-Blocking CSS on Static Sites",{"path":2582,"title":2583},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Ffixing-lcp-on-text-heavy-documentation-pages","Fixing LCP on Text-Heavy Documentation Pages",{"path":2585,"title":2586},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites","Largest Contentful Paint Optimization for Static Sites",{"path":2588,"title":2589},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Fmeasuring-lcp-subparts-with-devtools","Measuring LCP Subparts with DevTools",{"path":2591,"title":2592},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Foptimizing-lcp-on-astro-with-priority-hints","Optimizing LCP on Astro with Priority Hints",{"path":2594,"title":2595},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Freducing-lcp-from-hero-images-on-static-sites","Reducing LCP from Hero Images on Static Sites",{"path":2597,"title":2598},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fcomparing-lab-and-field-data-with-crux","Comparing Lab and Field Data with CrUX",{"path":2600,"title":24},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci",{"path":2602,"title":2603},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Freducing-lighthouse-score-variance-in-ci","Reducing Lighthouse Score Variance in CI",{"path":2605,"title":2606},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Frunning-webpagetest-scripts-against-preview-deploys","Running WebPageTest Scripts Against Preview Deploys",{"path":2608,"title":2609},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fsetting-up-lighthouse-ci-for-a-static-site","Setting Up Lighthouse CI for a Static Site",{"path":2313,"title":5},{"path":2612,"title":2258},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fwriting-a-performance-budget-that-fails-builds",{"path":2614,"title":2615},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fauditing-unused-preloads","Auditing Unused Preloads",{"path":2617,"title":2618},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed","Resource Hints and Navigation Speed",{"path":2620,"title":2621},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Finstant-navigation-with-speculation-rules","Instant Navigation with Speculation Rules",{"path":2623,"title":2624},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fpreconnect-vs-dns-prefetch-on-static-sites","Preconnect vs DNS-Prefetch on Static Sites",{"path":2626,"title":2627},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fprefetching-links-in-astro","Prefetching Links in Astro",{"path":2629,"title":2630},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fview-transitions-on-multi-page-static-sites","View Transitions on Multi-Page Static Sites",{"path":2632,"title":2633},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fauditing-third-party-scripts-with-lighthouse","Auditing Third-Party Scripts With Lighthouse",{"path":2635,"title":2636},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites","Third-Party Script Performance on Static Sites",{"path":2638,"title":2639},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Flazy-loading-youtube-embeds-on-static-sites","Lazy-Loading YouTube Embeds on Static Sites",{"path":2641,"title":2642},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Floading-google-tag-manager-without-hurting-inp","Loading Google Tag Manager Without Hurting INP",{"path":2644,"title":2645},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Frunning-third-party-scripts-in-a-web-worker-with-partytown","Running Third-Party Scripts in a Web Worker with Partytown",{"path":2647,"title":2648},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fself-hosting-analytics-to-cut-third-party-requests","Self-Hosting Analytics to Cut Third-Party Requests",{"path":2650,"title":2651},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fautomating-eleventy-deployments-with-cloudflare-pages","Automating Eleventy Deployments on Cloudflare Pages",{"path":2653,"title":2654},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fconfiguring-redirects-on-cloudflare-pages","Configuring Redirects on Cloudflare Pages",{"path":2656,"title":2657},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fcustom-domains-and-tls-on-cloudflare-pages","Custom Domains and TLS on Cloudflare Pages",{"path":2659,"title":2660},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fdeploying-hugo-to-cloudflare-pages-and-workers","Deploying Hugo to Cloudflare Pages and Workers",{"path":2662,"title":2663},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup","Cloudflare Pages Edge Caching Setup",{"path":2665,"title":2666},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fmigrating-from-cloudflare-pages-to-workers-static-assets","Migrating from Cloudflare Pages to Workers Static Assets",{"path":2668,"title":2669},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fchecking-links-in-pull-requests","Checking Links in Pull Requests",{"path":2671,"title":2672},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fdocs-as-code-review-workflow-for-writers","Docs-as-Code Review Workflow for Writers",{"path":2674,"title":2675},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Feditorial-checks-with-vale-in-ci","Editorial Checks with Vale in CI",{"path":2677,"title":2678},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams","Content Workflows for Documentation Teams",{"path":2680,"title":2681},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fscheduling-content-publication-with-cron-triggered-builds","Scheduling Content Publication With Cron-Triggered Builds",{"path":2683,"title":2684},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fwiring-a-headless-cms-to-a-static-build","Wiring a Headless CMS to a Static Build",{"path":2686,"title":2687},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fbuilding-astro-sites-with-github-actions","Building Astro Sites with GitHub Actions",{"path":2689,"title":2690},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fcaching-node-modules-in-github-actions-for-faster-ssg-builds","Caching node_modules in GitHub Actions",{"path":2692,"title":2693},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-github-pages-with-actions","Deploying to GitHub Pages with Actions",{"path":2695,"title":2696},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-multiple-environments-from-one-workflow","Deploying to Multiple Environments From One Workflow",{"path":2698,"title":2699},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fhow-to-set-up-github-actions-for-hugo-deployments","GitHub Actions for Hugo Deployments",{"path":2701,"title":2702},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds","GitHub Actions for Automated SSG Builds",{"path":2704,"title":2705},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fmatrix-builds-for-multi-site-monorepos","Matrix Builds for Multi-Site Monorepos",{"path":2707,"title":2708},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fcaching-hugo-builds-in-github-actions","Caching Hugo Builds in GitHub Actions",{"path":2710,"title":2711},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy","Enabling Incremental Builds in Eleventy",{"path":2713,"title":2714},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fincremental-builds-in-astro-with-the-content-layer","Incremental Builds in Astro with the Content Layer",{"path":2716,"title":2717},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs","Incremental Builds and Build Caching for SSGs",{"path":2719,"title":2720},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fmeasuring-build-time-regressions-in-ci","Measuring Build-Time Regressions in CI",{"path":2722,"title":2723},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fremote-caching-with-turborepo-for-ssg-monorepos","Remote Caching with Turborepo for SSG Monorepos",{"path":2725,"title":2726},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fsharing-build-cache-across-ci-runners","Sharing Build Cache Across CI Runners",{"path":2728,"title":2729},"\u002Fproduction-ready-deployment-cicd-workflows","Production-Ready Deployment & CI\u002FCD for SSGs",{"path":2731,"title":2732},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Falerting-on-cache-hit-ratio-drops","Alerting on Cache Hit Ratio Drops",{"path":2734,"title":2735},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fbuilding-a-core-web-vitals-dashboard-from-rum-data","Building a Core Web Vitals Dashboard from RUM Data",{"path":2737,"title":2738},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fcrawling-for-broken-links-on-a-schedule","Crawling for Broken Links on a Schedule",{"path":2740,"title":2741},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production","Monitoring Static Sites in Production",{"path":2743,"title":2744},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Flogging-404s-at-the-edge","Logging 404s at the Edge",{"path":2746,"title":2747},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fuptime-and-synthetic-checks-for-static-sites","Uptime and Synthetic Checks for Static Sites",{"path":2749,"title":2750},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-vercel-for-hugo-and-eleventy","Configuring Vercel for Hugo and Eleventy",{"path":2752,"title":2753},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies","Netlify vs Vercel Deployment Strategies",{"path":2755,"title":2756},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-build-hooks-for-content-updates","Netlify Build Hooks for Content Updates",{"path":2758,"title":2759},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-redirects-and-rewrites-for-static-sites","Netlify Redirects and Rewrites for Static Sites",{"path":2761,"title":2762},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fsetting-up-deploy-previews-on-netlify-for-every-pull-request","Netlify Deploy Previews for Every Pull Request",{"path":2764,"title":2765},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fvercel-isr-vs-static-generation-for-ssgs","Vercel ISR vs Static Generation for SSGs",{"path":2767,"title":2768},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fautomating-preview-deploy-pipelines-with-github-actions","Automating Preview Deploy Pipelines with GitHub Actions",{"path":2770,"title":2771},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments","Cleaning Up Stale Preview Deployments",{"path":2773,"title":2774},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests","Preview Environments for Pull Requests",{"path":2776,"title":2777},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpassword-protecting-preview-deployments","Password-Protecting Preview Deployments",{"path":2779,"title":2780},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreviewing-headless-cms-drafts","Previewing Headless CMS Drafts",{"path":2782,"title":2783},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fvisual-regression-testing-on-preview-deploys","Visual Regression Testing on Preview Deploys",{"path":2785,"title":2786},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads","Atomic Deploys vs Incremental Uploads",{"path":2788,"title":2789},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fcanary-releases-for-static-sites","Canary Releases for Static Sites",{"path":2791,"title":2792},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Ffeature-flags-on-static-sites","Feature Flags on Static Sites",{"path":2794,"title":2795},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites","Rollbacks and Deploy Safety for Static Sites",{"path":2797,"title":2798},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Frolling-back-a-bad-static-deploy-in-under-a-minute","Rolling Back a Bad Static Deploy in Under a Minute",{"path":2800,"title":2801},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Frunning-smoke-tests-against-a-preview-url","Running Smoke Tests Against a Preview URL",{"path":2803,"title":2804},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines","Auditing npm Dependencies in SSG Pipelines",{"path":2806,"title":2807},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fenabling-hsts-and-preload-safely","Enabling HSTS and Preload Safely",{"path":2809,"title":2810},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fhash-based-csp-for-inline-scripts-in-astro","Hash-Based CSP for Inline Scripts in Astro",{"path":2812,"title":2813},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites","Security Headers and Hardening for Static Sites",{"path":2815,"title":2816},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc","Securing Deploy Credentials with GitHub OIDC",{"path":2818,"title":2819},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsubresource-integrity-for-third-party-assets","Subresource Integrity for Third-Party Assets",{"path":2821,"title":2822},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fwriting-a-content-security-policy-for-a-static-site","Writing a Content Security Policy for a Static Site",{"path":2824,"title":2825},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3","Clean URLs and Trailing Slashes on S3",{"path":2827,"title":2828},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects","CloudFront Functions for Redirects",{"path":2830,"title":2831},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fdeploying-a-static-site-to-s3-and-cloudfront","Deploying a Static Site to S3 and CloudFront",{"path":2833,"title":2834},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites","Self-Hosting Static Sites on S3, Nginx and Caddy",{"path":2836,"title":2837},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy","Serving a Static Site with Caddy",{"path":2839,"title":2840},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-nginx","Serving a Static Site with Nginx",{"path":2842,"title":2843},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fzero-downtime-deploys-with-symlink-swaps","Zero-Downtime Deploys with Symlink Swaps",{"path":2845,"title":2846},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fadding-a-contact-form-with-cloudflare-workers","Adding a Contact Form with Cloudflare Workers",{"path":2848,"title":2849},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fhandling-form-submissions-on-a-static-site","Handling Form Submissions on a Static Site",{"path":2851,"title":2852},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites","Serverless Functions for Static Sites",{"path":2854,"title":2855},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnetlify-functions-vs-cloudflare-workers","Netlify Functions vs Cloudflare Workers",{"path":2857,"title":2858},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication","Protecting a Static Site Behind Authentication",{"path":2860,"title":2861},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fproxying-third-party-apis-from-an-edge-function","Proxying Third-Party APIs from an Edge Function",1789722847720]