[{"data":1,"prerenderedAt":1674},["ShallowReactive",2],{"page:\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fmetric-matched-fallback-fonts-with-size-adjust":3,"all-docs-nav":1129},{"id":4,"title":5,"body":6,"breadcrumb":1105,"dateModified":1115,"datePublished":1115,"description":1116,"extension":1117,"faq":1118,"meta":1123,"navigation":344,"path":1124,"seo":1125,"slug":12,"stem":1126,"type":1127,"__hash__":1128},"content\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fmetric-matched-fallback-fonts-with-size-adjust\u002Findex.md","Metric-Matched Fallback Fonts with size-adjust",{"type":7,"value":8,"toc":1086},"minimark",[9,13,22,50,55,72,76,83,182,186,196,381,412,418,422,432,547,550,554,557,587,590,759,770,774,777,816,822,922,926,929,944,947,951,957,961,999,1003,1009,1013,1018,1021,1025,1028,1032,1035,1039,1042,1046,1082],[10,11,5],"h1",{"id":12},"metric-matched-fallback-fonts-with-size-adjust",[14,15,16,17,21],"p",{},"When a web font loads with ",[18,19,20],"code",{},"font-display: swap",", the browser first renders text in a fallback font, then re-renders it in the web font when the file arrives. If the two fonts have different widths and line heights, every paragraph reflows at the moment of swap: lines rewrap, blocks change height, and everything below moves. That movement is layout shift, and on text-heavy static sites it is often the largest single contributor to CLS.",[14,23,24,25,28,29,32,33,32,36,39,40,43,44,49],{},"The fix is to stop using the fallback font as it comes. Four ",[18,26,27],{},"@font-face"," descriptors — ",[18,30,31],{},"size-adjust",", ",[18,34,35],{},"ascent-override",[18,37,38],{},"descent-override"," and ",[18,41,42],{},"line-gap-override"," — let you define a new face that uses a local font's glyphs with the web font's measurements. This guide explains what each descriptor does, how to calculate the values, and how to generate them in the build. It is part of ",[45,46,48],"a",{"href":47},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002F","Font Loading Strategies for Static Sites",".",[51,52,54],"h2",{"id":53},"prerequisites","Prerequisites",[56,57,58,62,65],"ul",{},[59,60,61],"li",{},"A self-hosted web font you can read metrics from.",[59,63,64],{},"A build step that can run Node.js, or willingness to calculate the numbers once by hand.",[59,66,67,68,49],{},"Field or lab CLS data showing text reflow when fonts swap — see ",[45,69,71],{"href":70},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Feliminating-layout-shift-from-web-fonts\u002F","Eliminating Layout Shift from Web Fonts",[51,73,75],{"id":74},"why-the-swap-moves-text","Why the Swap Moves Text",[14,77,78,79,82],{},"Two properties of a font decide how much space a paragraph takes: the average advance width of its characters, which controls how many words fit on a line, and its vertical metrics, which control the height of each line box. Inter and Arial at the same ",[18,80,81],{},"font-size"," differ on both. Inter is wider, so a paragraph set in Arial wraps later and has fewer lines; Inter's ascent and descent are also larger, so each of those lines is taller.",[84,85,86,178],"figure",{},[87,88,95,96,95,100,95,104,95,111],"svg",{"viewBox":89,"role":90,"ariaLabelledBy":91,"xmlns":94},"0 0 760 280","img",[92,93],"mff-why-title","mff-why-desc","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","\n  ",[97,98,99],"title",{"id":92},"A paragraph before and after a font swap",[101,102,103],"desc",{"id":93},"Three paragraph blocks. Plain Arial fallback takes four lines and 96 pixels. The Inter web font takes five lines and 125 pixels, so content below moves 29 pixels. The metric-matched fallback takes five lines and 125 pixels, the same as Inter, so nothing moves.",[105,106],"rect",{"x":107,"y":107,"width":108,"height":109,"fill":110},"0","760","280","#ffffff",[112,113,115,116,115,124,115,130,115,138,115,143,115,146,115,151,115,155,115,160,115,164,115,168,115,170,115,173,95],"g",{"style":114},"font-family:system-ui, sans-serif;font-size:12px","\n    ",[117,118,123],"text",{"x":119,"y":120,"fill":121,"style":122},"380","28","#1f2937","font-size:16px;font-weight:700;text-anchor:middle","Same paragraph, same font-size, three faces",[117,125,129],{"x":126,"y":127,"fill":121,"style":128},"130","58","font-weight:700;text-anchor:middle","Plain Arial fallback",[105,131],{"x":132,"y":133,"width":134,"height":135,"fill":136,"style":137,"stroke":136},"40","70","180","96","#556071","fill-opacity:0.18",[117,139,142],{"x":126,"y":140,"fill":136,"style":141},"186","text-anchor:middle","4 lines, 96 px",[117,144,145],{"x":119,"y":127,"fill":121,"style":128},"Inter web font",[105,147],{"x":148,"y":133,"width":134,"height":149,"fill":150,"style":137,"stroke":150},"290","125","#6a4c93",[117,152,154],{"x":119,"y":153,"fill":150,"style":141},"215","5 lines, 125 px",[117,156,159],{"x":119,"y":157,"fill":158,"style":141},"235","#b32b30","swap from Arial: +29 px shift",[117,161,163],{"x":162,"y":127,"fill":121,"style":128},"630","Matched fallback",[105,165],{"x":166,"y":133,"width":134,"height":149,"fill":167,"style":137,"stroke":167},"540","#3f6410",[117,169,154],{"x":162,"y":153,"fill":167,"style":141},[117,171,172],{"x":162,"y":157,"fill":167,"style":141},"swap: 0 px shift",[117,174,177],{"x":119,"y":175,"fill":136,"style":176},"266","font-size:11px;text-anchor:middle","360 px column, 16 px text, line-height normal",[179,180,181],"figcaption",{},"The matched fallback still draws Arial glyphs, but it occupies Inter's space.",[51,183,185],{"id":184},"the-four-descriptors","The Four Descriptors",[14,187,188,189,191,192,195],{},"All four go inside an ",[18,190,27],{}," rule that uses ",[18,193,194],{},"local()"," as its source, creating a new family name that you place in the font stack between the web font and the generic fallback.",[197,198,203],"pre",{"className":199,"code":200,"language":201,"meta":202,"style":202},"language-css shiki shiki-themes github-light github-dark","@font-face {\n  font-family: 'Inter Fallback';\n  src: local('Arial'), local('Helvetica'), local('Liberation Sans');\n  size-adjust: 107.12%;\n  ascent-override: 90.44%;\n  descent-override: 22.52%;\n  line-gap-override: 0%;\n}\n\nbody {\n  font-family: 'Inter', 'Inter Fallback', sans-serif;\n}\n","css","",[18,204,205,217,234,273,289,304,319,333,339,346,355,376],{"__ignoreMap":202},[206,207,210,213],"span",{"class":208,"line":209},"line",1,[206,211,27],{"class":212},"szBVR",[206,214,216],{"class":215},"sVt8B"," {\n",[206,218,220,224,227,231],{"class":208,"line":219},2,[206,221,223],{"class":222},"sj4cs","  font-family",[206,225,226],{"class":215},": ",[206,228,230],{"class":229},"sZZnC","'Inter Fallback'",[206,232,233],{"class":215},";\n",[206,235,237,240,242,245,248,251,254,256,258,261,263,265,267,270],{"class":208,"line":236},3,[206,238,239],{"class":222},"  src",[206,241,226],{"class":215},[206,243,244],{"class":222},"local",[206,246,247],{"class":215},"(",[206,249,250],{"class":229},"'Arial'",[206,252,253],{"class":215},"), ",[206,255,244],{"class":222},[206,257,247],{"class":215},[206,259,260],{"class":229},"'Helvetica'",[206,262,253],{"class":215},[206,264,244],{"class":222},[206,266,247],{"class":215},[206,268,269],{"class":229},"'Liberation Sans'",[206,271,272],{"class":215},");\n",[206,274,276,279,281,284,287],{"class":208,"line":275},4,[206,277,278],{"class":222},"  size-adjust",[206,280,226],{"class":215},[206,282,283],{"class":222},"107.12",[206,285,286],{"class":212},"%",[206,288,233],{"class":215},[206,290,292,295,297,300,302],{"class":208,"line":291},5,[206,293,294],{"class":222},"  ascent-override",[206,296,226],{"class":215},[206,298,299],{"class":222},"90.44",[206,301,286],{"class":212},[206,303,233],{"class":215},[206,305,307,310,312,315,317],{"class":208,"line":306},6,[206,308,309],{"class":222},"  descent-override",[206,311,226],{"class":215},[206,313,314],{"class":222},"22.52",[206,316,286],{"class":212},[206,318,233],{"class":215},[206,320,322,325,327,329,331],{"class":208,"line":321},7,[206,323,324],{"class":222},"  line-gap-override",[206,326,226],{"class":215},[206,328,107],{"class":222},[206,330,286],{"class":212},[206,332,233],{"class":215},[206,334,336],{"class":208,"line":335},8,[206,337,338],{"class":215},"}\n",[206,340,342],{"class":208,"line":341},9,[206,343,345],{"emptyLinePlaceholder":344},true,"\n",[206,347,349,353],{"class":208,"line":348},10,[206,350,352],{"class":351},"s9eBZ","body",[206,354,216],{"class":215},[206,356,358,360,362,365,367,369,371,374],{"class":208,"line":357},11,[206,359,223],{"class":222},[206,361,226],{"class":215},[206,363,364],{"class":229},"'Inter'",[206,366,32],{"class":215},[206,368,230],{"class":229},[206,370,32],{"class":215},[206,372,373],{"class":222},"sans-serif",[206,375,233],{"class":215},[206,377,379],{"class":208,"line":378},12,[206,380,338],{"class":215},[56,382,383,391,398,405],{},[59,384,385,390],{},[386,387,388],"strong",{},[18,389,31],{}," scales the glyphs and their advance widths. It is the main control for how many words fit on a line.",[59,392,393,397],{},[386,394,395],{},[18,396,35],{}," sets the height above the baseline used for line box calculation, as a percentage of the used font size.",[59,399,400,404],{},[386,401,402],{},[18,403,38],{}," does the same below the baseline.",[59,406,407,411],{},[386,408,409],{},[18,410,42],{}," sets extra leading. Most modern web fonts use 0%, and matching it removes one more source of difference.",[14,413,414,415,417],{},"The override percentages apply after ",[18,416,31],{},", so derive the ascent and descent values by dividing the web font's metrics by the size adjustment, as shown below.",[51,419,421],{"id":420},"calculating-the-values","Calculating the Values",[14,423,424,425,39,428,431],{},"Every value comes from two sets of numbers: the web font's metrics, read from its ",[18,426,427],{},"hhea",[18,429,430],{},"OS\u002F2"," tables, and the fallback font's average character width.",[84,433,434,544],{},[87,435,95,440,95,443,95,446,95,449,95,465],{"viewBox":436,"role":90,"ariaLabelledBy":437,"xmlns":94},"0 0 760 270",[438,439],"mff-calc-title","mff-calc-desc",[97,441,442],{"id":438},"From font metrics to override percentages",[101,444,445],{"id":439},"Inter's units per em is 2048, ascent 1984, descent 494 and average width 1105 units. Arial's average width scaled to 2048 units is 1032. size-adjust is 1105 divided by 1032, 107.12 percent. ascent-override is 1984 divided by 2048 divided by 1.0712, 90.44 percent. descent-override is 494 divided by 2048 divided by 1.0712, 22.52 percent.",[105,447],{"x":107,"y":107,"width":108,"height":448,"fill":110},"270",[450,451,115,452,95],"defs",{},[453,454,461],"marker",{"id":455,"viewBox":456,"refX":457,"refY":458,"markerWidth":459,"markerHeight":459,"orient":460},"mff-calc-arrow","0 0 10 10","9","5","7","auto-start-reverse",[462,463],"path",{"d":464,"fill":136},"M0,0 L10,5 L0,10 z",[112,466,115,467,115,470,115,479,115,484,115,489,115,493,115,497,115,501,115,505,115,510,115,515,115,518,115,522,115,527,115,531,115,536,115,540,95],{"style":114},[117,468,469],{"x":119,"y":120,"fill":121,"style":122},"Deriving the descriptors for Inter over Arial",[105,471],{"x":472,"y":473,"width":474,"height":475,"rx":476,"fill":477,"style":478,"stroke":477},"30","50","250","190","8","#166a9e","fill-opacity:0.08",[117,480,483],{"x":481,"y":482,"fill":477,"style":128},"155","74","Measured metrics",[117,485,488],{"x":486,"y":487,"fill":121},"45","102","Inter unitsPerEm: 2048",[117,490,492],{"x":486,"y":491,"fill":121},"126","Inter ascent: 1984",[117,494,496],{"x":486,"y":495,"fill":121},"150","Inter descent: 494",[117,498,500],{"x":486,"y":499,"fill":121},"174","Inter avg width: 1105",[117,502,504],{"x":486,"y":503,"fill":121},"198","Arial avg width: 1032",[117,506,509],{"x":486,"y":507,"fill":136,"style":508},"222","font-size:11px","weighted by English letter frequency",[208,511],{"x1":148,"y1":512,"x2":513,"y2":512,"stroke":136,"style":514},"145","360","stroke-width:1.5px;marker-end:url(#mff-calc-arrow)",[105,516],{"x":517,"y":473,"width":513,"height":475,"rx":476,"fill":167,"style":478,"stroke":167},"370",[117,519,521],{"x":520,"y":482,"fill":167,"style":128},"550","Descriptors",[117,523,526],{"x":524,"y":525,"fill":121},"385","108","size-adjust = 1105 \u002F 1032 = 107.12%",[117,528,530],{"x":524,"y":529,"fill":121},"142","ascent-override = 1984 \u002F 2048 \u002F 1.0712",[117,532,535],{"x":533,"y":534,"fill":121},"545","160","= 90.44%",[117,537,539],{"x":524,"y":538,"fill":121},"194","descent-override = 494 \u002F 2048 \u002F 1.0712",[117,541,543],{"x":533,"y":542,"fill":121},"212","= 22.52%",[179,545,546],{},"Width sets size-adjust; the vertical overrides are then divided by it.",[14,548,549],{},"Average width is the part that needs care. A plain mean over all glyphs weights rarely used characters equally with \"e\" and \"t\", so tools weight each glyph by how often it appears in the site's language. For English body text the frequency-weighted value lands within one or two percent of the real rendered width; for German, French or code-heavy pages, use the matching frequency table or measure against real content.",[51,551,553],{"id":552},"generating-fallbacks-in-the-build","Generating Fallbacks in the Build",[14,555,556],{},"Calculating by hand works once, but the values must change whenever the font file or weight changes. Generate them instead.",[56,558,559,568,581],{},[59,560,561,564,565,567],{},[386,562,563],{},"fontaine"," (from the UnJS project) is a Vite and webpack plugin that reads the ",[18,566,27],{}," rules in your CSS, calculates overrides for a list of fallbacks and injects the extra faces. It works with Astro, Nuxt and any Vite-based build.",[59,569,570,573,574,577,578,580],{},[386,571,572],{},"Capsize"," exposes the metrics of common fonts as JSON and a ",[18,575,576],{},"createFontStack"," helper that outputs the fallback ",[18,579,27],{}," CSS; it suits Eleventy and Hugo pipelines where a small Node script writes a CSS partial.",[59,582,583,586],{},[386,584,585],{},"next\u002Ffont"," does the same automatically in Next.js, including for static export.",[14,588,589],{},"A minimal fontaine setup in Astro:",[197,591,595],{"className":592,"code":593,"language":594,"meta":202,"style":202},"language-js shiki shiki-themes github-light github-dark","\u002F\u002F astro.config.mjs\nimport { defineConfig } from 'astro\u002Fconfig';\nimport { FontaineTransform } from 'fontaine';\n\nexport default defineConfig({\n  vite: {\n    plugins: [\n      FontaineTransform.vite({\n        fallbacks: ['Arial', 'Helvetica Neue', 'Liberation Sans'],\n        resolvePath: (id) => new URL(`.\u002Fpublic${id}`, import.meta.url),\n      }),\n    ],\n  },\n});\n","js",[18,596,597,603,619,633,637,652,657,662,672,691,737,742,747,753],{"__ignoreMap":202},[206,598,599],{"class":208,"line":209},[206,600,602],{"class":601},"sJ8bj","\u002F\u002F astro.config.mjs\n",[206,604,605,608,611,614,617],{"class":208,"line":219},[206,606,607],{"class":212},"import",[206,609,610],{"class":215}," { defineConfig } ",[206,612,613],{"class":212},"from",[206,615,616],{"class":229}," 'astro\u002Fconfig'",[206,618,233],{"class":215},[206,620,621,623,626,628,631],{"class":208,"line":236},[206,622,607],{"class":212},[206,624,625],{"class":215}," { FontaineTransform } ",[206,627,613],{"class":212},[206,629,630],{"class":229}," 'fontaine'",[206,632,233],{"class":215},[206,634,635],{"class":208,"line":275},[206,636,345],{"emptyLinePlaceholder":344},[206,638,639,642,645,649],{"class":208,"line":291},[206,640,641],{"class":212},"export",[206,643,644],{"class":212}," default",[206,646,648],{"class":647},"sScJk"," defineConfig",[206,650,651],{"class":215},"({\n",[206,653,654],{"class":208,"line":306},[206,655,656],{"class":215},"  vite: {\n",[206,658,659],{"class":208,"line":321},[206,660,661],{"class":215},"    plugins: [\n",[206,663,664,667,670],{"class":208,"line":335},[206,665,666],{"class":215},"      FontaineTransform.",[206,668,669],{"class":647},"vite",[206,671,651],{"class":215},[206,673,674,677,679,681,684,686,688],{"class":208,"line":341},[206,675,676],{"class":215},"        fallbacks: [",[206,678,250],{"class":229},[206,680,32],{"class":215},[206,682,683],{"class":229},"'Helvetica Neue'",[206,685,32],{"class":215},[206,687,269],{"class":229},[206,689,690],{"class":215},"],\n",[206,692,693,696,699,703,706,709,712,715,717,720,722,725,727,729,731,734],{"class":208,"line":348},[206,694,695],{"class":647},"        resolvePath",[206,697,698],{"class":215},": (",[206,700,702],{"class":701},"s4XuR","id",[206,704,705],{"class":215},") ",[206,707,708],{"class":212},"=>",[206,710,711],{"class":212}," new",[206,713,714],{"class":647}," URL",[206,716,247],{"class":215},[206,718,719],{"class":229},"`.\u002Fpublic${",[206,721,702],{"class":215},[206,723,724],{"class":229},"}`",[206,726,32],{"class":215},[206,728,607],{"class":212},[206,730,49],{"class":215},[206,732,733],{"class":222},"meta",[206,735,736],{"class":215},".url),\n",[206,738,739],{"class":208,"line":357},[206,740,741],{"class":215},"      }),\n",[206,743,744],{"class":208,"line":378},[206,745,746],{"class":215},"    ],\n",[206,748,750],{"class":208,"line":749},13,[206,751,752],{"class":215},"  },\n",[206,754,756],{"class":208,"line":755},14,[206,757,758],{"class":215},"});\n",[14,760,761,762,765,766,769],{},"After a build, check the emitted CSS: each web font family should have a companion ",[18,763,764],{},"Inter fallback"," face with the four descriptors, and the ",[18,767,768],{},"font-family"," stacks should list it second.",[51,771,773],{"id":772},"tuning-per-platform","Tuning Per Platform",[14,775,776],{},"Arial is present on Windows and macOS but absent on most Linux desktops and on Android, where Roboto or Liberation Sans take its place. Each has slightly different widths, so one set of values fits one platform best. Where the difference matters, declare separate fallback faces with values tuned for each local font and list them all:",[197,778,780],{"className":199,"code":779,"language":201,"meta":202,"style":202},"body {\n  font-family: 'Inter', 'Inter Fallback Arial', 'Inter Fallback Roboto', sans-serif;\n}\n",[18,781,782,788,812],{"__ignoreMap":202},[206,783,784,786],{"class":208,"line":209},[206,785,352],{"class":351},[206,787,216],{"class":215},[206,789,790,792,794,796,798,801,803,806,808,810],{"class":208,"line":219},[206,791,223],{"class":222},[206,793,226],{"class":215},[206,795,364],{"class":229},[206,797,32],{"class":215},[206,799,800],{"class":229},"'Inter Fallback Arial'",[206,802,32],{"class":215},[206,804,805],{"class":229},"'Inter Fallback Roboto'",[206,807,32],{"class":215},[206,809,373],{"class":222},[206,811,233],{"class":215},[206,813,814],{"class":208,"line":236},[206,815,338],{"class":215},[14,817,818,819,821],{},"The browser picks the first face whose ",[18,820,194],{}," source exists. Test each by forcing the web font to fail — block the font URL in DevTools' network request blocking — and comparing paragraph heights against a normal load.",[84,823,824,919],{},[87,825,95,830,95,833,95,836,95,838],{"viewBox":826,"role":90,"ariaLabelledBy":827,"xmlns":94},"0 0 760 250",[828,829],"mff-res-title","mff-res-desc",[97,831,832],{"id":828},"CLS attributed to font swap before and after metric matching",[101,834,835],{"id":829},"Field CLS p75 from font swap on a documentation template. Windows fell from 0.09 to 0.01, macOS from 0.08 to 0.01, Android from 0.12 to 0.03 after adding a Roboto-tuned face.",[105,837],{"x":107,"y":107,"width":108,"height":474,"fill":110},[112,839,115,840,115,843,115,849,115,856,115,860,115,865,115,870,115,875,115,879,115,884,115,887,115,890,115,893,115,898,115,901,115,906,115,911,115,915,95],{"style":114},[117,841,842],{"x":119,"y":120,"fill":121,"style":122},"Field CLS p75 from font swap, by platform",[208,844],{"x1":845,"y1":846,"x2":847,"y2":846,"stroke":136,"style":848},"80","200","700","stroke-width:1.5px",[105,850],{"x":851,"y":852,"width":853,"height":525,"fill":854,"style":855},"120","92","60","#d83b41","fill-opacity:0.45",[117,857,859],{"x":495,"y":858,"fill":121,"style":141},"86","0.09",[105,861],{"x":475,"y":862,"width":853,"height":863,"fill":167,"style":864},"188","12","fill-opacity:0.55",[117,866,869],{"x":867,"y":868,"fill":121,"style":141},"220","182","0.01",[117,871,874],{"x":872,"y":873,"fill":136,"style":141},"185","218","Windows",[105,876],{"x":877,"y":878,"width":853,"height":135,"fill":854,"style":855},"320","104",[117,880,883],{"x":881,"y":882,"fill":121,"style":141},"350","98","0.08",[105,885],{"x":886,"y":862,"width":853,"height":863,"fill":167,"style":864},"390",[117,888,869],{"x":889,"y":868,"fill":121,"style":141},"420",[117,891,892],{"x":524,"y":873,"fill":136,"style":141},"macOS",[105,894],{"x":895,"y":896,"width":853,"height":897,"fill":854,"style":855},"520","56","144",[117,899,900],{"x":520,"y":473,"fill":121,"style":141},"0.12",[105,902],{"x":903,"y":904,"width":853,"height":905,"fill":167,"style":864},"590","164","36",[117,907,910],{"x":908,"y":909,"fill":121,"style":141},"620","158","0.03",[117,912,914],{"x":913,"y":873,"fill":136,"style":141},"585","Android",[117,916,918],{"x":119,"y":917,"fill":136,"style":176},"240","red: plain fallback, green: matched fallback",[179,920,921],{},"Android kept a small residual shift because Roboto's glyph shapes differ more from Inter than Arial's do.",[51,923,925],{"id":924},"verifying-the-match","Verifying the Match",[14,927,928],{},"Numbers from a tool are a starting point, not proof. Two quick checks confirm the fallback really occupies the same space:",[930,931,932,938],"ol",{},[59,933,934,937],{},[386,935,936],{},"Block the font and compare heights."," Load a long article normally and note the height of the main content element in DevTools. Block the WOFF2 URL with network request blocking, reload, and compare. A good match is within one line over several thousand words.",[59,939,940,943],{},[386,941,942],{},"Record a swap on a slow connection."," Throttle to \"Slow 4G\", open the Performance panel and record a load. The Layout Shift track should show no entries at the moment the font arrives; any that remain are attributed to the elements that moved, which points to the face or weight that still needs tuning.",[14,945,946],{},"Repeat both checks after any font upgrade, because a new release of the same family can change its metrics.",[51,948,950],{"id":949},"measured-impact","Measured Impact",[14,952,953,954,956],{},"On a 900-page documentation site using Inter with ",[18,955,20],{},", font swap accounted for 71% of attributed layout shift. Adding fontaine-generated Arial and Roboto fallbacks took about an hour, added 480 bytes of CSS and no requests, and moved the docs template from 0.11 to 0.02 CLS at the 75th percentile on mobile. The number of URLs in Search Console's \"CLS issue: more than 0.1\" group fell from 610 to zero within the 28-day window.",[51,958,960],{"id":959},"pitfalls-rollback","Pitfalls & Rollback",[56,962,963,972,978,984,993],{},[59,964,965,968,969,971],{},[386,966,967],{},"Matching only width."," ",[18,970,31],{}," alone fixes wrapping, but line heights still change; always set the vertical overrides too.",[59,973,974,977],{},[386,975,976],{},"Forgetting bold and italic."," Each weight and style used above the fold needs its own fallback face, because bold glyphs are wider.",[59,979,980,983],{},[386,981,982],{},"Monospace code blocks."," Code fonts need their own fallback matched against Courier New or Menlo, or code samples jump on swap.",[59,985,986,989,990,992],{},[386,987,988],{},"Browser support."," Safari added ",[18,991,31],{}," in 17; older versions ignore it and simply show the unmatched fallback, which is no worse than before.",[59,994,995,998],{},[386,996,997],{},"Rollback:"," remove the fallback faces and the extra family name from the font stack.",[51,1000,1002],{"id":1001},"conclusion","Conclusion",[14,1004,1005,1006,1008],{},"A web font swap shifts layout because the fallback font takes a different amount of space. ",[18,1007,31],{}," fixes line wrapping, the three override descriptors fix line height, and together they turn a local system font into a stand-in with the web font's footprint. Generate the values in the build with fontaine or Capsize, add faces for each platform's fallback, and verify by blocking the font file — text should look different, but nothing on the page should move.",[51,1010,1012],{"id":1011},"faq","FAQ",[1014,1015,1017],"h3",{"id":1016},"what-does-size-adjust-do-in-font-face","What does size-adjust do in @font-face?",[14,1019,1020],{},"It scales every glyph of the font face by a percentage, changing the average character width and therefore how many characters fit on a line. On a fallback face it is used to make a local font such as Arial set text at the same width as the web font.",[1014,1022,1024],{"id":1023},"why-do-i-need-ascent-override-and-descent-override-as-well","Why do I need ascent-override and descent-override as well?",[14,1026,1027],{},"size-adjust fixes width, but line height is computed from the font's ascent, descent and line gap. If those differ, each line of fallback text is a different height and paragraphs still grow or shrink on swap. The overrides set those metrics explicitly.",[1014,1029,1031],{"id":1030},"how-do-i-calculate-the-override-values","How do I calculate the override values?",[14,1033,1034],{},"Read the web font's metrics from its OS\u002F2 and hhea tables with a tool such as fontkit or Capsize, compare the average character width with the local fallback's, and derive the percentages. Tools like fontaine and next\u002Ffont generate the values automatically at build time.",[1014,1036,1038],{"id":1037},"which-local-font-should-i-use-as-the-fallback","Which local font should I use as the fallback?",[14,1040,1041],{},"Pick a font installed on nearly every device whose shapes are close to the web font — Arial or Helvetica for most sans-serifs, Georgia or Times New Roman for serifs. List platform alternatives in separate fallback faces so each operating system gets tuned values.",[51,1043,1045],{"id":1044},"related","Related",[56,1047,1048,1056,1063,1070,1075],{},[59,1049,1050,968,1053,1055],{},[386,1051,1052],{},"Parent:",[45,1054,48],{"href":47}," — the full font policy.",[59,1057,1058,1062],{},[45,1059,1061],{"href":1060},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads\u002F","Preloading Fonts Without Double Downloads"," — shortening the time the fallback is shown.",[59,1064,1065,1069],{},[45,1066,1068],{"href":1067},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap\u002F","font-display: optional vs swap"," — when a swap happens at all.",[59,1071,1072,1074],{},[45,1073,71],{"href":70}," — finding font shifts in field data.",[59,1076,1077,1081],{},[45,1078,1080],{"href":1079},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fself-hosting-google-fonts-to-eliminate-layout-shift\u002F","Self-Hosting Google Fonts to Eliminate Layout Shift"," — getting the files you read metrics from.",[1083,1084,1085],"style",{},"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 .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}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 .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}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}",{"title":202,"searchDepth":219,"depth":219,"links":1087},[1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1104],{"id":53,"depth":219,"text":54},{"id":74,"depth":219,"text":75},{"id":184,"depth":219,"text":185},{"id":420,"depth":219,"text":421},{"id":552,"depth":219,"text":553},{"id":772,"depth":219,"text":773},{"id":924,"depth":219,"text":925},{"id":949,"depth":219,"text":950},{"id":959,"depth":219,"text":960},{"id":1001,"depth":219,"text":1002},{"id":1011,"depth":219,"text":1012,"children":1099},[1100,1101,1102,1103],{"id":1016,"depth":236,"text":1017},{"id":1023,"depth":236,"text":1024},{"id":1030,"depth":236,"text":1031},{"id":1037,"depth":236,"text":1038},{"id":1044,"depth":219,"text":1045},[1106,1109,1112,1113],{"name":1107,"item":1108},"Home","\u002F",{"name":1110,"item":1111},"Performance Optimization & Core Web Vitals for SSGs","\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002F",{"name":48,"item":47},{"name":5,"item":1114},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fmetric-matched-fallback-fonts-with-size-adjust\u002F","2026-09-18","Use size-adjust, ascent-override and descent-override to make a local fallback font take the same space as your web font, so the swap causes no layout shift.","md",[1119,1120,1121,1122],{"q":1017,"a":1020},{"q":1024,"a":1027},{"q":1031,"a":1034},{"q":1038,"a":1041},{},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fmetric-matched-fallback-fonts-with-size-adjust",{"title":5,"description":1116},"performance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fmetric-matched-fallback-fonts-with-size-adjust\u002Findex","article","fE82cgbp5hAz9tP4fO7eJr3n9AS5GJLfr_TkqQuJECM",[1130,1133,1136,1139,1142,1145,1148,1151,1154,1157,1160,1163,1166,1169,1172,1175,1178,1181,1184,1187,1190,1193,1196,1199,1202,1205,1208,1211,1214,1217,1220,1223,1226,1229,1232,1235,1238,1241,1244,1247,1250,1253,1256,1259,1262,1265,1268,1271,1274,1277,1280,1283,1286,1289,1292,1295,1298,1301,1304,1307,1310,1313,1316,1319,1322,1325,1328,1331,1333,1335,1336,1338,1341,1344,1347,1350,1353,1356,1359,1362,1365,1368,1371,1374,1377,1380,1383,1386,1389,1392,1395,1398,1401,1404,1407,1410,1413,1416,1419,1422,1425,1428,1431,1434,1437,1440,1443,1446,1449,1452,1455,1458,1461,1464,1467,1470,1473,1476,1479,1482,1485,1488,1491,1494,1497,1500,1503,1506,1509,1512,1515,1518,1521,1524,1527,1530,1533,1536,1539,1542,1545,1548,1551,1554,1557,1560,1563,1566,1569,1572,1575,1578,1581,1584,1587,1590,1593,1596,1599,1602,1605,1608,1611,1614,1617,1620,1623,1626,1629,1632,1635,1638,1641,1644,1647,1650,1653,1656,1659,1662,1665,1668,1671],{"path":1131,"title":1132},"\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":1134,"title":1135},"\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":1137,"title":1138},"\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":1140,"title":1141},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites","Astro vs Eleventy for Documentation Sites",{"path":1143,"title":1144},"\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":1146,"title":1147},"\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":1149,"title":1150},"\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":1152,"title":1153},"\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":1155,"title":1156},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress","Docs Frameworks: Docusaurus, Starlight and VitePress",{"path":1158,"title":1159},"\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":1161,"title":1162},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-from-mkdocs-to-starlight","Migrating from MkDocs to Starlight",{"path":1164,"title":1165},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioned-documentation-with-docusaurus","Versioned Documentation with Docusaurus",{"path":1167,"title":1168},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-for-library-documentation","VitePress for Library Documentation",{"path":1170,"title":1171},"\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":1173,"title":1174},"\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":1176,"title":1177},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories","Hugo Build Times for Large Repositories",{"path":1179,"title":1180},"\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":1182,"title":1183},"\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":1185,"title":1186},"\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":1188,"title":1189},"\u002Fchoosing-the-right-static-site-generator-for-production","Choosing the Right Static Site Generator for Production",{"path":1191,"title":1192},"\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":1194,"title":1195},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem","Jekyll Plugin Ecosystem",{"path":1197,"title":1198},"\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":1200,"title":1201},"\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":1203,"title":1204},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fspeeding-up-slow-jekyll-builds","Speeding Up Slow Jekyll Builds",{"path":1206,"title":1207},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fupgrading-jekyll-and-ruby-versions-safely","Upgrading Jekyll and Ruby Versions Safely",{"path":1209,"title":1210},"\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":1212,"title":1213},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators","Migrating Between Static Site Generators",{"path":1215,"title":1216},"\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":1218,"title":1219},"\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":1221,"title":1222},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-gatsby-to-astro","Migrating from Gatsby to Astro",{"path":1224,"title":1225},"\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":1227,"title":1228},"\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":1230,"title":1231},"\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":1233,"title":1234},"\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":1236,"title":1237},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites","Next.js Static Export for Content Sites",{"path":1239,"title":1240},"\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":1242,"title":1243},"\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":1245,"title":1246},"\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":1248,"title":1249},"\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":1251,"title":1252},"\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":1254,"title":1255},"\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":1257,"title":1258},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites","Search for Static Sites",{"path":1260,"title":1261},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind","Indexing Hugo Sites with Pagefind",{"path":1263,"title":1264},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites","Multilingual Search on Static Sites",{"path":1266,"title":1267},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch","Pagefind vs Algolia DocSearch",{"path":1269,"title":1270},"\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":1272,"title":1273},"\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":1275,"title":1276},"\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":1278,"title":1279},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fevaluating-ssg-accessibility-defaults","Evaluating SSG Accessibility Defaults",{"path":1281,"title":1282},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix","SSG Framework Selection Matrix",{"path":1284,"title":1285},"\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":1287,"title":1288},"\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":1290,"title":1291},"\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":1293,"title":1294},"\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":1296,"title":1297},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs","CDN Caching Rules for SSGs",{"path":1299,"title":1300},"\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":1302,"title":1303},"\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":1305,"title":1306},"\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":1308,"title":1309},"\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":1311,"title":1312},"\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":1314,"title":1315},"\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":1317,"title":1318},"\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":1320,"title":1321},"\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":1323,"title":1324},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites","Cumulative Layout Shift Fixes for Static Sites",{"path":1326,"title":1327},"\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":1329,"title":1330},"\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":1332,"title":1068},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap",{"path":1334,"title":48},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites",{"path":1124,"title":5},{"path":1337,"title":1061},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads",{"path":1339,"title":1340},"\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":1342,"title":1343},"\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":1345,"title":1346},"\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":1348,"title":1349},"\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":1351,"title":1352},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro","Image Optimization Pipelines in Astro",{"path":1354,"title":1355},"\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":1357,"title":1358},"\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":1360,"title":1361},"\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":1363,"title":1364},"\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":1366,"title":1367},"\u002Fperformance-optimization-core-web-vitals-for-ssgs","Core Web Vitals Optimization for SSGs",{"path":1369,"title":1370},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fastro-islands-vs-full-hydration-performance","Astro Islands vs Full Hydration Performance",{"path":1372,"title":1373},"\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":1375,"title":1376},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fhow-to-reduce-bundle-size-in-eleventy-builds","How to Reduce Bundle Size in Eleventy Builds",{"path":1378,"title":1379},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering","JavaScript Hydration & Partial Rendering",{"path":1381,"title":1382},"\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":1384,"title":1385},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components","Replacing React Islands with Web Components",{"path":1387,"title":1388},"\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":1390,"title":1391},"\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":1393,"title":1394},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites","Largest Contentful Paint Optimization for Static Sites",{"path":1396,"title":1397},"\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":1399,"title":1400},"\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":1402,"title":1403},"\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":1405,"title":1406},"\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":1408,"title":1409},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci","Performance Budgets and Lighthouse CI",{"path":1411,"title":1412},"\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":1414,"title":1415},"\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":1417,"title":1418},"\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":1420,"title":1421},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Ftracking-bundle-size-per-pull-request","Tracking Bundle Size per Pull Request",{"path":1423,"title":1424},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fwriting-a-performance-budget-that-fails-builds","Writing a Performance Budget That Fails Builds",{"path":1426,"title":1427},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fauditing-unused-preloads","Auditing Unused Preloads",{"path":1429,"title":1430},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed","Resource Hints and Navigation Speed",{"path":1432,"title":1433},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Finstant-navigation-with-speculation-rules","Instant Navigation with Speculation Rules",{"path":1435,"title":1436},"\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":1438,"title":1439},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fprefetching-links-in-astro","Prefetching Links in Astro",{"path":1441,"title":1442},"\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":1444,"title":1445},"\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":1447,"title":1448},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites","Third-Party Script Performance on Static Sites",{"path":1450,"title":1451},"\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":1453,"title":1454},"\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":1456,"title":1457},"\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":1459,"title":1460},"\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":1462,"title":1463},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fautomating-eleventy-deployments-with-cloudflare-pages","Automating Eleventy Deployments on Cloudflare Pages",{"path":1465,"title":1466},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fconfiguring-redirects-on-cloudflare-pages","Configuring Redirects on Cloudflare Pages",{"path":1468,"title":1469},"\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":1471,"title":1472},"\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":1474,"title":1475},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup","Cloudflare Pages Edge Caching Setup",{"path":1477,"title":1478},"\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":1480,"title":1481},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fchecking-links-in-pull-requests","Checking Links in Pull Requests",{"path":1483,"title":1484},"\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":1486,"title":1487},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Feditorial-checks-with-vale-in-ci","Editorial Checks with Vale in CI",{"path":1489,"title":1490},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams","Content Workflows for Documentation Teams",{"path":1492,"title":1493},"\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":1495,"title":1496},"\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":1498,"title":1499},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fbuilding-astro-sites-with-github-actions","Building Astro Sites with GitHub Actions",{"path":1501,"title":1502},"\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":1504,"title":1505},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-github-pages-with-actions","Deploying to GitHub Pages with Actions",{"path":1507,"title":1508},"\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":1510,"title":1511},"\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":1513,"title":1514},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds","GitHub Actions for Automated SSG Builds",{"path":1516,"title":1517},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fmatrix-builds-for-multi-site-monorepos","Matrix Builds for Multi-Site Monorepos",{"path":1519,"title":1520},"\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":1522,"title":1523},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy","Enabling Incremental Builds in Eleventy",{"path":1525,"title":1526},"\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":1528,"title":1529},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs","Incremental Builds and Build Caching for SSGs",{"path":1531,"title":1532},"\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":1534,"title":1535},"\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":1537,"title":1538},"\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":1540,"title":1541},"\u002Fproduction-ready-deployment-cicd-workflows","Production-Ready Deployment & CI\u002FCD for SSGs",{"path":1543,"title":1544},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Falerting-on-cache-hit-ratio-drops","Alerting on Cache Hit Ratio Drops",{"path":1546,"title":1547},"\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":1549,"title":1550},"\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":1552,"title":1553},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production","Monitoring Static Sites in Production",{"path":1555,"title":1556},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Flogging-404s-at-the-edge","Logging 404s at the Edge",{"path":1558,"title":1559},"\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":1561,"title":1562},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-vercel-for-hugo-and-eleventy","Configuring Vercel for Hugo and Eleventy",{"path":1564,"title":1565},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies","Netlify vs Vercel Deployment Strategies",{"path":1567,"title":1568},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-build-hooks-for-content-updates","Netlify Build Hooks for Content Updates",{"path":1570,"title":1571},"\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":1573,"title":1574},"\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":1576,"title":1577},"\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":1579,"title":1580},"\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":1582,"title":1583},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments","Cleaning Up Stale Preview Deployments",{"path":1585,"title":1586},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests","Preview Environments for Pull Requests",{"path":1588,"title":1589},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpassword-protecting-preview-deployments","Password-Protecting Preview Deployments",{"path":1591,"title":1592},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreviewing-headless-cms-drafts","Previewing Headless CMS Drafts",{"path":1594,"title":1595},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fvisual-regression-testing-on-preview-deploys","Visual Regression Testing on Preview Deploys",{"path":1597,"title":1598},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads","Atomic Deploys vs Incremental Uploads",{"path":1600,"title":1601},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fcanary-releases-for-static-sites","Canary Releases for Static Sites",{"path":1603,"title":1604},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Ffeature-flags-on-static-sites","Feature Flags on Static Sites",{"path":1606,"title":1607},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites","Rollbacks and Deploy Safety for Static Sites",{"path":1609,"title":1610},"\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":1612,"title":1613},"\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":1615,"title":1616},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines","Auditing npm Dependencies in SSG Pipelines",{"path":1618,"title":1619},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fenabling-hsts-and-preload-safely","Enabling HSTS and Preload Safely",{"path":1621,"title":1622},"\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":1624,"title":1625},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites","Security Headers and Hardening for Static Sites",{"path":1627,"title":1628},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc","Securing Deploy Credentials with GitHub OIDC",{"path":1630,"title":1631},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsubresource-integrity-for-third-party-assets","Subresource Integrity for Third-Party Assets",{"path":1633,"title":1634},"\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":1636,"title":1637},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3","Clean URLs and Trailing Slashes on S3",{"path":1639,"title":1640},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects","CloudFront Functions for Redirects",{"path":1642,"title":1643},"\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":1645,"title":1646},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites","Self-Hosting Static Sites on S3, Nginx and Caddy",{"path":1648,"title":1649},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy","Serving a Static Site with Caddy",{"path":1651,"title":1652},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-nginx","Serving a Static Site with Nginx",{"path":1654,"title":1655},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fzero-downtime-deploys-with-symlink-swaps","Zero-Downtime Deploys with Symlink Swaps",{"path":1657,"title":1658},"\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":1660,"title":1661},"\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":1663,"title":1664},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites","Serverless Functions for Static Sites",{"path":1666,"title":1667},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnetlify-functions-vs-cloudflare-workers","Netlify Functions vs Cloudflare Workers",{"path":1669,"title":1670},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication","Protecting a Static Site Behind Authentication",{"path":1672,"title":1673},"\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",1789722848065]