[{"data":1,"prerenderedAt":1666},["ShallowReactive",2],{"page:\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-sticky-headers-and-anchor-links":3,"all-docs-nav":1122},{"id":4,"title":5,"body":6,"breadcrumb":1097,"dateModified":1107,"datePublished":1107,"description":1108,"extension":1109,"faq":1110,"meta":1115,"navigation":1116,"path":1117,"seo":1118,"slug":12,"stem":1119,"type":1120,"__hash__":1121},"content\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-sticky-headers-and-anchor-links\u002Findex.md","Fixing CLS from Sticky Headers and Anchor Links",{"type":7,"value":8,"toc":1079},"minimark",[9,13,26,43,48,66,70,77,191,320,324,327,483,496,500,514,590,604,608,621,627,706,710,713,724,730,739,755,829,833,836,909,912,916,985,989,1001,1005,1010,1013,1017,1020,1024,1027,1031,1034,1038,1075],[10,11,5],"h1",{"id":12},"fixing-cls-from-sticky-headers-and-anchor-links",[14,15,16,17,21,22,25],"p",{},"Sticky headers are nearly universal on documentation sites, and they are a quiet source of two problems. The first is layout shift: headers that switch to ",[18,19,20],"code",{},"position: fixed"," on scroll, shrink to a compact version after 100 pixels, or change height when the web font arrives all move the content beneath them, and because scrolling is not an excluded input, those shifts count toward Cumulative Layout Shift. The second is usability: a reader follows a link to ",[18,23,24],{},"#configuration",", the browser scrolls the heading to the top of the viewport, and the sticky header covers it.",[14,27,28,29,32,33,36,37,42],{},"This guide measures both on a documentation site, fixes the shift with stable heights and ",[18,30,31],{},"position: sticky",", and fixes anchor links with ",[18,34,35],{},"scroll-padding",". It is part of ",[38,39,41],"a",{"href":40},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002F","Cumulative Layout Shift Fixes for Static Sites",".",[44,45,47],"h2",{"id":46},"prerequisites","Prerequisites",[49,50,51,55,63],"ul",{},[52,53,54],"li",{},"A site with a sticky or fixed header.",[52,56,57,58,62],{},"Field CLS data with attribution — see ",[38,59,61],{"href":60},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Fmeasuring-cls-in-the-field-with-web-vitals-js\u002F","Measuring CLS in the Field with web-vitals.js"," — because scroll-driven shifts barely appear in a Lighthouse load test.",[52,64,65],{},"The header's markup and CSS.",[44,67,69],{"id":68},"why-lab-tests-miss-it","Why Lab Tests Miss It",[14,71,72,73,76],{},"Lighthouse measures CLS during page load without scrolling, so a header that shifts content on scroll scores 0 in the lab. Field data tells a different story. On the test site, lab CLS for the docs template was 0.01; field CLS p75 was 0.14, and attribution pointed at ",[18,74,75],{},"main"," shifting by 56 px at a median of 4.2 seconds after load — the moment readers began scrolling and the header's JavaScript switched it from static to fixed.",[78,79,84],"pre",{"className":80,"code":81,"language":82,"meta":83,"style":83},"language-js shiki shiki-themes github-light github-dark","import { onCLS } from 'web-vitals\u002Fattribution';\nonCLS(({ value, attribution: a }) => navigator.sendBeacon('\u002Fapi\u002Frum', JSON.stringify({\n  cls: value, target: a.largestShiftTarget, time: Math.round(a.largestShiftTime),\n})));\n\u002F\u002F { cls: 0.14, target: \"main.content\", time: 4180 }\n","js","",[18,85,86,109,166,178,184],{"__ignoreMap":83},[87,88,91,95,99,102,106],"span",{"class":89,"line":90},"line",1,[87,92,94],{"class":93},"szBVR","import",[87,96,98],{"class":97},"sVt8B"," { onCLS } ",[87,100,101],{"class":93},"from",[87,103,105],{"class":104},"sZZnC"," 'web-vitals\u002Fattribution'",[87,107,108],{"class":97},";\n",[87,110,112,116,119,123,126,129,132,134,137,140,143,146,149,152,154,158,160,163],{"class":89,"line":111},2,[87,113,115],{"class":114},"sScJk","onCLS",[87,117,118],{"class":97},"(({ ",[87,120,122],{"class":121},"s4XuR","value",[87,124,125],{"class":97},", ",[87,127,128],{"class":121},"attribution",[87,130,131],{"class":97},": ",[87,133,38],{"class":121},[87,135,136],{"class":97}," }) ",[87,138,139],{"class":93},"=>",[87,141,142],{"class":97}," navigator.",[87,144,145],{"class":114},"sendBeacon",[87,147,148],{"class":97},"(",[87,150,151],{"class":104},"'\u002Fapi\u002Frum'",[87,153,125],{"class":97},[87,155,157],{"class":156},"sj4cs","JSON",[87,159,42],{"class":97},[87,161,162],{"class":114},"stringify",[87,164,165],{"class":97},"({\n",[87,167,169,172,175],{"class":89,"line":168},3,[87,170,171],{"class":97},"  cls: value, target: a.largestShiftTarget, time: Math.",[87,173,174],{"class":114},"round",[87,176,177],{"class":97},"(a.largestShiftTime),\n",[87,179,181],{"class":89,"line":180},4,[87,182,183],{"class":97},"})));\n",[87,185,187],{"class":89,"line":186},5,[87,188,190],{"class":189},"sJ8bj","\u002F\u002F { cls: 0.14, target: \"main.content\", time: 4180 }\n",[192,193,194,316],"figure",{},[195,196,203,204,203,208,203,212,203,219],"svg",{"viewBox":197,"role":198,"ariaLabelledBy":199,"xmlns":202},"0 0 760 280","img",[200,201],"shd-jump-title","shd-jump-desc","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","\n  ",[205,206,207],"title",{"id":200},"A header switching to fixed on scroll",[209,210,211],"desc",{"id":201},"Two frames. Before scrolling, a 56 pixel header sits in normal flow above the content. When the reader scrolls past a threshold, a script sets position fixed; the header leaves the flow and the content jumps up 56 pixels, recorded as a layout shift. A third frame shows position sticky, where the header stays in flow and the content does not move.",[213,214],"rect",{"x":215,"y":215,"width":216,"height":217,"fill":218},"0","760","280","#ffffff",[220,221,223,224,223,232,223,242,223,249,223,258,223,262,223,268,223,272,223,275,223,280,223,283,223,290,223,293,223,296,223,301,223,304,223,309,223,312,203],"g",{"style":222},"font-family:system-ui, sans-serif;font-size:12px","\n    ",[225,226,231],"text",{"x":227,"y":228,"fill":229,"style":230},"380","28","#1f2937","font-size:16px;font-weight:700;text-anchor:middle","static → fixed on scroll: the content jumps",[213,233],{"x":234,"y":235,"width":236,"height":237,"rx":238,"fill":239,"stroke":240,"style":241},"60","50","180","200","8","#f8fafc","#d9e2ef","stroke-width:1.5px",[225,243,248],{"x":244,"y":245,"fill":246,"style":247},"150","44","#556071","font-size:11px;text-anchor:middle","before scroll",[213,250],{"x":251,"y":234,"width":252,"height":253,"rx":254,"fill":255,"opacity":256,"stroke":255,"style":257},"70","160","30","3","#6a4c93","0.2","stroke-width:1px",[225,259,261],{"x":244,"y":260,"fill":229,"style":247},"80","header (in flow)",[213,263],{"x":251,"y":264,"width":252,"height":265,"rx":254,"fill":266,"opacity":267,"stroke":266,"style":257},"98","140","#1982c4","0.12",[225,269,271],{"x":244,"y":270,"fill":229,"style":247},"170","content",[213,273],{"x":274,"y":235,"width":236,"height":237,"rx":238,"fill":239,"stroke":240,"style":241},"290",[225,276,279],{"x":227,"y":245,"fill":277,"style":278},"#b32b30","font-size:11px;font-weight:700;text-anchor:middle","position: fixed → shift",[213,281],{"x":282,"y":234,"width":252,"height":253,"rx":254,"fill":255,"opacity":256,"stroke":255,"style":257},"300",[213,284],{"x":282,"y":285,"width":252,"height":265,"rx":254,"fill":286,"opacity":287,"stroke":288,"style":289},"62","#ff595e","0.1","#d83b41","stroke-width:1px;stroke-dasharray:4 3",[225,291,292],{"x":227,"y":265,"fill":277,"style":247},"content jumps up 56 px",[213,294],{"x":295,"y":235,"width":236,"height":237,"rx":238,"fill":239,"stroke":240,"style":241},"520",[225,297,300],{"x":298,"y":245,"fill":299,"style":278},"610","#3f6410","position: sticky → no shift",[213,302],{"x":303,"y":234,"width":252,"height":253,"rx":254,"fill":255,"opacity":256,"stroke":255,"style":257},"530",[213,305],{"x":303,"y":264,"width":252,"height":265,"rx":254,"fill":306,"opacity":307,"stroke":308,"style":257},"#8ac926","0.14","#5a8a16",[225,310,311],{"x":298,"y":270,"fill":229,"style":247},"content stays put",[225,313,315],{"x":227,"y":314,"fill":246,"style":247},"272","Field CLS p75 on the docs template: 0.14 with the scroll script, 0.02 with sticky",[317,318,319],"figcaption",{},"Sticky positioning keeps the header's space in the layout, so nothing below it has to move.",[44,321,323],{"id":322},"fix-1-use-position-sticky-with-a-fixed-height","Fix 1: Use position: sticky With a Fixed Height",[14,325,326],{},"Replace JavaScript-driven switching with CSS:",[78,328,332],{"className":329,"code":330,"language":331,"meta":83,"style":83},"language-css shiki shiki-themes github-light github-dark",":root { --header-h: 56px; }\n.site-header {\n  position: sticky;\n  top: 0;\n  z-index: 40;\n  height: var(--header-h);        \u002F* fixed height, never content-driven *\u002F\n  background: var(--surface);\n}\nhtml { scroll-padding-top: calc(var(--header-h) + 12px); }\n","css",[18,333,334,356,364,376,387,399,420,438,444],{"__ignoreMap":83},[87,335,336,339,342,345,347,350,353],{"class":89,"line":90},[87,337,338],{"class":114},":root",[87,340,341],{"class":97}," { ",[87,343,344],{"class":121},"--header-h",[87,346,131],{"class":97},[87,348,349],{"class":156},"56",[87,351,352],{"class":93},"px",[87,354,355],{"class":97},"; }\n",[87,357,358,361],{"class":89,"line":111},[87,359,360],{"class":114},".site-header",[87,362,363],{"class":97}," {\n",[87,365,366,369,371,374],{"class":89,"line":168},[87,367,368],{"class":156},"  position",[87,370,131],{"class":97},[87,372,373],{"class":156},"sticky",[87,375,108],{"class":97},[87,377,378,381,383,385],{"class":89,"line":180},[87,379,380],{"class":156},"  top",[87,382,131],{"class":97},[87,384,215],{"class":156},[87,386,108],{"class":97},[87,388,389,392,394,397],{"class":89,"line":186},[87,390,391],{"class":156},"  z-index",[87,393,131],{"class":97},[87,395,396],{"class":156},"40",[87,398,108],{"class":97},[87,400,402,405,407,410,412,414,417],{"class":89,"line":401},6,[87,403,404],{"class":156},"  height",[87,406,131],{"class":97},[87,408,409],{"class":156},"var",[87,411,148],{"class":97},[87,413,344],{"class":121},[87,415,416],{"class":97},");        ",[87,418,419],{"class":189},"\u002F* fixed height, never content-driven *\u002F\n",[87,421,423,426,428,430,432,435],{"class":89,"line":422},7,[87,424,425],{"class":156},"  background",[87,427,131],{"class":97},[87,429,409],{"class":156},[87,431,148],{"class":97},[87,433,434],{"class":121},"--surface",[87,436,437],{"class":97},");\n",[87,439,441],{"class":89,"line":440},8,[87,442,443],{"class":97},"}\n",[87,445,447,451,453,456,458,461,463,465,467,469,472,475,478,480],{"class":89,"line":446},9,[87,448,450],{"class":449},"s9eBZ","html",[87,452,341],{"class":97},[87,454,455],{"class":156},"scroll-padding-top",[87,457,131],{"class":97},[87,459,460],{"class":156},"calc",[87,462,148],{"class":97},[87,464,409],{"class":156},[87,466,148],{"class":97},[87,468,344],{"class":121},[87,470,471],{"class":97},") ",[87,473,474],{"class":93},"+",[87,476,477],{"class":156}," 12",[87,479,352],{"class":93},[87,481,482],{"class":97},"); }\n",[14,484,485,487,488,491,492,42],{},[18,486,31],{}," keeps the header in normal flow, so its space is reserved from the first paint and nothing moves when it starts sticking. A fixed ",[18,489,490],{},"height"," prevents a different class of shift: headers whose height depends on their content change size when the web font swaps in, or when a search box or banner inside them loads. The font case is covered in ",[38,493,495],{"href":494},"\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",[44,497,499],{"id":498},"fix-2-shrink-without-shifting","Fix 2: Shrink Without Shifting",[14,501,502,503,506,507,509,510,513],{},"If the design calls for a header that becomes more compact on scroll, animate it with ",[18,504,505],{},"transform"," rather than changing ",[18,508,490],{}," or ",[18,511,512],{},"padding",". A transform does not affect layout, so it cannot cause a layout shift:",[78,515,517],{"className":329,"code":516,"language":331,"meta":83,"style":83},".site-header .inner { transition: transform 150ms ease; transform-origin: top left; }\n.site-header[data-compact] .inner { transform: scale(0.86); }\n",[18,518,519,558],{"__ignoreMap":83},[87,520,521,523,526,528,531,534,536,539,542,545,548,550,553,556],{"class":89,"line":90},[87,522,360],{"class":114},[87,524,525],{"class":114}," .inner",[87,527,341],{"class":97},[87,529,530],{"class":156},"transition",[87,532,533],{"class":97},": transform ",[87,535,244],{"class":156},[87,537,538],{"class":93},"ms",[87,540,541],{"class":156}," ease",[87,543,544],{"class":97},"; ",[87,546,547],{"class":156},"transform-origin",[87,549,131],{"class":97},[87,551,552],{"class":156},"top",[87,554,555],{"class":156}," left",[87,557,355],{"class":97},[87,559,560,562,565,568,571,574,576,578,580,583,585,588],{"class":89,"line":111},[87,561,360],{"class":114},[87,563,564],{"class":97},"[",[87,566,567],{"class":114},"data-compact",[87,569,570],{"class":97},"] ",[87,572,573],{"class":114},".inner",[87,575,341],{"class":97},[87,577,505],{"class":156},[87,579,131],{"class":97},[87,581,582],{"class":156},"scale",[87,584,148],{"class":97},[87,586,587],{"class":156},"0.86",[87,589,482],{"class":97},[14,591,592,593,595,596,599,600,603],{},"Keep the header's layout box the same height in both states; only the visual scale changes. A tiny script toggles ",[18,594,567],{}," from an ",[18,597,598],{},"IntersectionObserver"," on a sentinel element at the top of the page, avoiding scroll listeners entirely. Respect ",[18,601,602],{},"prefers-reduced-motion"," by disabling the transition.",[44,605,607],{"id":606},"fix-3-anchor-links-that-land-below-the-header","Fix 3: Anchor Links That Land Below the Header",[14,609,610,611,613,614,616,617,620],{},"With a sticky header, jumping to ",[18,612,24],{}," scrolls the heading to the top edge of the viewport, underneath the header. ",[18,615,455],{}," on the scroll container — the root element for page scrolling — tells the browser to leave that much space above anchor targets. It applies to same-page links, links from other pages with a fragment, and keyboard focus scrolling. The older technique of adding ",[18,618,619],{},"scroll-margin-top"," to every heading also works but is easy to miss on new elements.",[14,622,623,624,626],{},"Test it with a deep link from another page and with the table of contents, including on narrow screens if the header height changes at a breakpoint — in that case set ",[18,625,344],{}," per breakpoint so the padding follows.",[192,628,629,703],{},[195,630,203,635,203,638,203,641,203,644],{"viewBox":631,"role":198,"ariaLabelledBy":632,"xmlns":202},"0 0 760 260",[633,634],"shd-anc-title","shd-anc-desc",[205,636,637],{"id":633},"Anchor target position with and without scroll-padding",[209,639,640],{"id":634},"Two viewports after following a link to a heading. Without scroll-padding, the heading is scrolled to the very top and hidden behind the 56 pixel sticky header. With scroll-padding-top of 68 pixels, the heading stops just below the header and is fully visible.",[213,642],{"x":215,"y":215,"width":216,"height":643,"fill":218},"260",[220,645,223,646,223,649,223,653,223,657,223,665,223,668,223,671,223,675,223,678,223,682,223,684,223,687,223,692,223,696,223,699,203],{"style":222},[225,647,648],{"x":227,"y":228,"fill":229,"style":230},"Following a link to #configuration",[213,650],{"x":651,"y":235,"width":652,"height":236,"rx":238,"fill":239,"stroke":240,"style":241},"100","220",[225,654,656],{"x":655,"y":245,"fill":277,"style":278},"210","no scroll-padding",[213,658],{"x":659,"y":660,"width":237,"height":661,"rx":254,"fill":662,"opacity":663,"stroke":664,"style":257},"110","57","20","#ffca3a","0.5","#a97b00",[213,666],{"x":651,"y":235,"width":652,"height":253,"rx":238,"fill":255,"opacity":667,"stroke":255,"style":257},"0.35",[225,669,670],{"x":655,"y":251,"fill":229,"style":247},"header covers heading",[213,672],{"x":659,"y":673,"width":237,"height":674,"rx":254,"fill":266,"opacity":287,"stroke":266,"style":257},"90","120",[213,676],{"x":677,"y":235,"width":652,"height":236,"rx":238,"fill":239,"stroke":240,"style":241},"440",[225,679,681],{"x":680,"y":245,"fill":299,"style":278},"550","scroll-padding-top: 68px",[213,683],{"x":677,"y":235,"width":652,"height":253,"rx":238,"fill":255,"opacity":667,"stroke":255,"style":257},[225,685,686],{"x":680,"y":251,"fill":229,"style":247},"header",[213,688],{"x":689,"y":690,"width":237,"height":691,"rx":254,"fill":662,"opacity":663,"stroke":664,"style":257},"450","92","18",[225,693,695],{"x":680,"y":694,"fill":229,"style":278},"105","## Configuration",[213,697],{"x":689,"y":698,"width":237,"height":651,"rx":254,"fill":266,"opacity":287,"stroke":266,"style":257},"118",[225,700,702],{"x":227,"y":701,"fill":246,"style":247},"252","One CSS declaration fixes every anchor on the site",[317,704,705],{},"The fix belongs on the root element once, not on each heading.",[44,707,709],{"id":708},"other-sticky-elements-sidebars-tables-of-contents-and-tabs","Other Sticky Elements: Sidebars, Tables of Contents and Tabs",[14,711,712],{},"Headers are the most visible case, but documentation pages usually have two or three more sticky elements, and each can shift content in similar ways.",[14,714,715,719,720,723],{},[716,717,718],"strong",{},"Sticky sidebars and \"on this page\" lists."," Sidebars positioned with ",[18,721,722],{},"position: sticky; top: var(--header-h)"," are safe as long as their width is fixed; a sidebar whose width is set by its longest label changes width when the web font loads and shifts the main column sideways. Give sidebars an explicit width, and let long labels wrap or truncate.",[14,725,726,729],{},[716,727,728],{},"Active-section highlighting."," A table of contents that bolds the current section on scroll can change line heights and push later entries down — a shift inside the sticky element that still counts. Highlight with colour or a border, never with font weight that changes metrics.",[14,731,732,735,736,738],{},[716,733,734],{},"Tab bars that become sticky."," Code-sample tabs that stick below the header on long pages must reserve their own height with the same fixed-height approach, and anchor links need ",[18,737,455],{}," to include both heights.",[14,740,741,744,745,748,749,509,752,754],{},[716,742,743],{},"Mobile headers with a hide-on-scroll pattern."," Hiding the header when the reader scrolls down and showing it when they scroll up is popular on phones. Implement it with ",[18,746,747],{},"transform: translateY(-100%)",", never by changing ",[18,750,751],{},"display",[18,753,490],{},", so the layout stays still.",[192,756,757,826],{},[195,758,203,763,203,766,203,769,203,772],{"viewBox":759,"role":198,"ariaLabelledBy":760,"xmlns":202},"0 0 760 250",[761,762],"shd-trend-title","shd-trend-desc",[205,764,765],{"id":761},"Field CLS p75 on the docs template over eight weeks",[209,767,768],{"id":762},"A line of weekly field CLS p75. It sits around 0.14 for four weeks, drops to about 0.05 the week the header fix ships, and settles at 0.02 after the sidebar width and table-of-contents highlight fixes the following week. The 0.1 good threshold is marked.",[213,770],{"x":215,"y":215,"width":216,"height":771,"fill":218},"250",[220,773,223,774,223,777,223,780,223,782,223,786,223,790,223,793,223,798,223,804,223,809,223,814,223,818,223,822,203],{"style":222},[225,775,776],{"x":227,"y":228,"fill":229,"style":230},"Weekly field CLS p75, docs template",[89,778],{"x1":251,"y1":237,"x2":779,"y2":237,"stroke":246,"style":241},"720",[89,781],{"x1":251,"y1":235,"x2":251,"y2":237,"stroke":246,"style":241},[225,783,215],{"x":285,"y":784,"fill":246,"style":785},"204","font-size:11px;text-anchor:end",[225,787,789],{"x":285,"y":788,"fill":246,"style":785},"54","0.15",[89,791],{"x1":251,"y1":651,"x2":779,"y2":651,"stroke":288,"style":792},"stroke-width:1px;stroke-dasharray:5 4",[225,794,797],{"x":795,"y":796,"fill":277,"style":785},"716","94","0.1 good threshold",[799,800],"polyline",{"points":801,"fill":802,"stroke":255,"style":803},"100,62 180,60 260,64 340,61 420,150 500,180 580,181 660,180","none","stroke-width:2.5px",[225,805,808],{"x":806,"y":807,"fill":229,"style":247},"420","142","header fix",[225,810,813],{"x":295,"y":811,"fill":229,"style":812},"172","font-size:11px","sidebar + TOC fixes",[225,815,817],{"x":651,"y":816,"fill":246,"style":247},"218","wk 1",[225,819,821],{"x":820,"y":816,"fill":246,"style":247},"660","wk 8",[225,823,825],{"x":227,"y":824,"fill":246,"style":247},"240","web-vitals attribution beacons; lab CLS was 0.01 throughout",[317,827,828],{},"The header accounted for most of the shift; the sidebar and table of contents for the rest.",[44,830,832],{"id":831},"measured-impact","Measured Impact",[14,834,835],{},"The docs site, four weeks of field data before and after:",[837,838,839,855],"table",{},[840,841,842],"thead",{},[843,844,845,849,852],"tr",{},[846,847,848],"th",{},"Measure",[846,850,851],{},"Scroll-switched fixed header",[846,853,854],{},"Sticky, fixed height, scroll-padding",[856,857,858,869,879,889,900],"tbody",{},[843,859,860,864,866],{},[861,862,863],"td",{},"Field CLS p75, docs template",[861,865,307],{},[861,867,868],{},"0.02",[843,870,871,874,877],{},[861,872,873],{},"Pages with \"poor\" CLS in Search Console",[861,875,876],{},"486",[861,878,215],{},[843,880,881,884,887],{},[861,882,883],{},"Lab CLS (Lighthouse)",[861,885,886],{},"0.01",[861,888,886],{},[843,890,891,894,897],{},[861,892,893],{},"Header JavaScript",[861,895,896],{},"2.1 KB + scroll listener",[861,898,899],{},"0.3 KB (IntersectionObserver)",[843,901,902,905,907],{},[861,903,904],{},"Anchor-link headings hidden (manual test of 40 links)",[861,906,396],{},[861,908,215],{},[14,910,911],{},"The lab number never moved, which is the lesson: scroll-driven shifts only show up in field data.",[44,913,915],{"id":914},"pitfalls-rollback","Pitfalls & Rollback",[49,917,918,924,930,943,952,962,971,979],{},[52,919,920,923],{},[716,921,922],{},"Trusting lab CLS."," Load tests do not scroll. Use field attribution for headers, and add a scripted scroll to your Lighthouse user flow if you want a lab signal as well.",[52,925,926,929],{},[716,927,928],{},"Height from content."," A header sized by its contents shifts when fonts or widgets load; set an explicit height.",[52,931,932,939,940,942],{},[716,933,934,935,509,937,42],{},"Animating ",[18,936,490],{},[18,938,512],{}," Use ",[18,941,505],{}," for compact states.",[52,944,945,948,949,951],{},[716,946,947],{},"Forgetting breakpoints."," If the header is taller on mobile, ",[18,950,455],{}," must follow.",[52,953,954,961],{},[716,955,956,957,960],{},"Sticky inside ",[18,958,959],{},"overflow: hidden"," ancestors."," Sticky positioning stops working inside a scroll container; check ancestors if the header does not stick.",[52,963,964,967,968,970],{},[716,965,966],{},"Announcement bars above the header."," A dismissible banner that sits above a sticky header changes the header's offset when it closes. Overlay the banner or reserve its space until the reader dismisses it, and update ",[18,969,344],{}," in the same frame.",[52,972,973,976,977,42],{},[716,974,975],{},"Hard-coded offsets in JavaScript."," Smooth-scroll helpers that subtract a fixed pixel value drift out of sync with the CSS. Read the offset from the custom property, or drop the helper and rely on ",[18,978,455],{},[52,980,981,984],{},[716,982,983],{},"Rollback:"," the change is CSS plus removing a scroll script; restoring the previous stylesheet reverts it.",[44,986,988],{"id":987},"conclusion","Conclusion",[14,990,991,992,994,995,997,998,1000],{},"Sticky headers cause layout shift when they leave normal flow on scroll or change height after first paint, and they hide anchor targets unless the page knows their height. ",[18,993,31],{}," with a fixed height, ",[18,996,505],{}," for compact states and ",[18,999,455],{}," on the root solved both on a documentation site: field CLS p75 fell from 0.14 to 0.02, 486 pages left Search Console's \"poor\" list, and every deep link landed with its heading visible — all while lab CLS, which never scrolls, reported no problem before or after.",[44,1002,1004],{"id":1003},"faq","FAQ",[1006,1007,1009],"h3",{"id":1008},"why-does-a-sticky-header-cause-layout-shift","Why does a sticky header cause layout shift?",[14,1011,1012],{},"When a header switches from static to fixed positioning on scroll, it leaves normal flow and the content below jumps up by the header's height. Headers that shrink or grow on scroll, or change height when a web font loads, shift content in the same way.",[1006,1014,1016],{"id":1015},"do-shifts-during-scrolling-count-toward-cls","Do shifts during scrolling count toward CLS?",[14,1018,1019],{},"Shifts that happen within 500 milliseconds of a discrete user input such as a tap or key press are excluded, but scrolling is not an excluded input. A header that changes layout while the reader scrolls produces shifts that count.",[1006,1021,1023],{"id":1022},"how-do-i-stop-anchor-links-hiding-headings-under-a-sticky-header","How do I stop anchor links hiding headings under a sticky header?",[14,1025,1026],{},"Set scroll-padding-top on the html element to the header's height. The browser then scrolls anchor targets so they stop below the header, for both same-page links and links from other pages.",[1006,1028,1030],{"id":1029},"is-position-sticky-better-than-position-fixed-for-headers","Is position sticky better than position fixed for headers?",[14,1032,1033],{},"Usually. A sticky element stays in normal flow, so switching it on causes no jump, and its space is reserved automatically. Fixed headers need a matching padding on the body to avoid overlapping content.",[44,1035,1037],{"id":1036},"related","Related",[49,1039,1040,1049,1056,1061,1068],{},[52,1041,1042,1045,1046,1048],{},[716,1043,1044],{},"Parent:"," ",[38,1047,41],{"href":40}," — all the common shift sources.",[52,1050,1051,1055],{},[38,1052,1054],{"href":1053},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-cookie-banners\u002F","Fixing CLS from Cookie Banners"," — the other positioning fix.",[52,1057,1058,1060],{},[38,1059,495],{"href":494}," — why header height changes on font swap.",[52,1062,1063,1067],{},[38,1064,1066],{"href":1065},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fview-transitions-on-multi-page-static-sites\u002F","View Transitions on Multi-Page Static Sites"," — keeping the header still across pages.",[52,1069,1070,1074],{},[38,1071,1073],{"href":1072},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsidebar-navigation-in-astro-and-eleventy\u002F","Sidebar Navigation in Astro and Eleventy"," — the sticky sidebar next to the header.",[1076,1077,1078],"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 .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}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 .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}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":83,"searchDepth":111,"depth":111,"links":1080},[1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1096],{"id":46,"depth":111,"text":47},{"id":68,"depth":111,"text":69},{"id":322,"depth":111,"text":323},{"id":498,"depth":111,"text":499},{"id":606,"depth":111,"text":607},{"id":708,"depth":111,"text":709},{"id":831,"depth":111,"text":832},{"id":914,"depth":111,"text":915},{"id":987,"depth":111,"text":988},{"id":1003,"depth":111,"text":1004,"children":1091},[1092,1093,1094,1095],{"id":1008,"depth":168,"text":1009},{"id":1015,"depth":168,"text":1016},{"id":1022,"depth":168,"text":1023},{"id":1029,"depth":168,"text":1030},{"id":1036,"depth":111,"text":1037},[1098,1101,1104,1105],{"name":1099,"item":1100},"Home","\u002F",{"name":1102,"item":1103},"Performance Optimization & Core Web Vitals for SSGs","\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002F",{"name":41,"item":40},{"name":5,"item":1106},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-sticky-headers-and-anchor-links\u002F","2026-09-18","Sticky headers that change height, shrink on scroll or hide anchor targets cause layout shift and lost headings. Fix them with fixed heights and scroll-padding.","md",[1111,1112,1113,1114],{"q":1009,"a":1012},{"q":1016,"a":1019},{"q":1023,"a":1026},{"q":1030,"a":1033},{},true,"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-sticky-headers-and-anchor-links",{"title":5,"description":1108},"performance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-sticky-headers-and-anchor-links\u002Findex","article","dpU6Wesrz5Q8V3tpR7LdCzWMXcBoqUYyWTT7apGQ6k4",[1123,1126,1129,1132,1135,1138,1140,1143,1146,1149,1152,1155,1158,1161,1164,1167,1170,1173,1176,1179,1182,1185,1188,1191,1194,1197,1200,1203,1206,1209,1212,1215,1218,1221,1224,1227,1230,1233,1236,1239,1242,1245,1248,1251,1254,1257,1260,1263,1266,1269,1272,1275,1278,1281,1284,1287,1290,1293,1296,1299,1302,1305,1307,1310,1311,1313,1316,1319,1322,1325,1328,1331,1334,1337,1340,1343,1346,1349,1352,1355,1358,1361,1364,1367,1370,1373,1376,1379,1382,1385,1388,1391,1394,1397,1400,1403,1406,1409,1412,1415,1418,1421,1424,1427,1430,1433,1435,1438,1441,1444,1447,1450,1453,1456,1459,1462,1465,1468,1471,1474,1477,1480,1483,1486,1489,1492,1495,1498,1501,1504,1507,1510,1513,1516,1519,1522,1525,1528,1531,1534,1537,1540,1543,1546,1549,1552,1555,1558,1561,1564,1567,1570,1573,1576,1579,1582,1585,1588,1591,1594,1597,1600,1603,1606,1609,1612,1615,1618,1621,1624,1627,1630,1633,1636,1639,1642,1645,1648,1651,1654,1657,1660,1663],{"path":1124,"title":1125},"\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":1127,"title":1128},"\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":1130,"title":1131},"\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":1133,"title":1134},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites","Astro vs Eleventy for Documentation Sites",{"path":1136,"title":1137},"\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":1139,"title":1073},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsidebar-navigation-in-astro-and-eleventy",{"path":1141,"title":1142},"\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":1144,"title":1145},"\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":1147,"title":1148},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress","Docs Frameworks: Docusaurus, Starlight and VitePress",{"path":1150,"title":1151},"\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":1153,"title":1154},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-from-mkdocs-to-starlight","Migrating from MkDocs to Starlight",{"path":1156,"title":1157},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioned-documentation-with-docusaurus","Versioned Documentation with Docusaurus",{"path":1159,"title":1160},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-for-library-documentation","VitePress for Library Documentation",{"path":1162,"title":1163},"\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":1165,"title":1166},"\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":1168,"title":1169},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories","Hugo Build Times for Large Repositories",{"path":1171,"title":1172},"\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":1174,"title":1175},"\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":1177,"title":1178},"\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":1180,"title":1181},"\u002Fchoosing-the-right-static-site-generator-for-production","Choosing the Right Static Site Generator for Production",{"path":1183,"title":1184},"\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":1186,"title":1187},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem","Jekyll Plugin Ecosystem",{"path":1189,"title":1190},"\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":1192,"title":1193},"\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":1195,"title":1196},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fspeeding-up-slow-jekyll-builds","Speeding Up Slow Jekyll Builds",{"path":1198,"title":1199},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fupgrading-jekyll-and-ruby-versions-safely","Upgrading Jekyll and Ruby Versions Safely",{"path":1201,"title":1202},"\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":1204,"title":1205},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators","Migrating Between Static Site Generators",{"path":1207,"title":1208},"\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":1210,"title":1211},"\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":1213,"title":1214},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-gatsby-to-astro","Migrating from Gatsby to Astro",{"path":1216,"title":1217},"\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":1219,"title":1220},"\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":1222,"title":1223},"\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":1225,"title":1226},"\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":1228,"title":1229},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites","Next.js Static Export for Content Sites",{"path":1231,"title":1232},"\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":1234,"title":1235},"\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":1237,"title":1238},"\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":1240,"title":1241},"\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":1243,"title":1244},"\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":1246,"title":1247},"\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":1249,"title":1250},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites","Search for Static Sites",{"path":1252,"title":1253},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind","Indexing Hugo Sites with Pagefind",{"path":1255,"title":1256},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites","Multilingual Search on Static Sites",{"path":1258,"title":1259},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch","Pagefind vs Algolia DocSearch",{"path":1261,"title":1262},"\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":1264,"title":1265},"\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":1267,"title":1268},"\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":1270,"title":1271},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fevaluating-ssg-accessibility-defaults","Evaluating SSG Accessibility Defaults",{"path":1273,"title":1274},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix","SSG Framework Selection Matrix",{"path":1276,"title":1277},"\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":1279,"title":1280},"\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":1282,"title":1283},"\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":1285,"title":1286},"\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":1288,"title":1289},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs","CDN Caching Rules for SSGs",{"path":1291,"title":1292},"\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":1294,"title":1295},"\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":1297,"title":1298},"\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":1300,"title":1301},"\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":1303,"title":1304},"\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":1306,"title":1054},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-cookie-banners",{"path":1308,"title":1309},"\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":1117,"title":5},{"path":1312,"title":41},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites",{"path":1314,"title":1315},"\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":1317,"title":1318},"\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":1320,"title":1321},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap","font-display: optional vs swap",{"path":1323,"title":1324},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites","Font Loading Strategies for Static Sites",{"path":1326,"title":1327},"\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":1329,"title":1330},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads","Preloading Fonts Without Double Downloads",{"path":1332,"title":1333},"\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":1335,"title":1336},"\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":1338,"title":1339},"\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":1341,"title":1342},"\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":1344,"title":1345},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro","Image Optimization Pipelines in Astro",{"path":1347,"title":1348},"\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":1350,"title":1351},"\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":1353,"title":1354},"\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":1356,"title":1357},"\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":1359,"title":1360},"\u002Fperformance-optimization-core-web-vitals-for-ssgs","Core Web Vitals Optimization for SSGs",{"path":1362,"title":1363},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fastro-islands-vs-full-hydration-performance","Astro Islands vs Full Hydration Performance",{"path":1365,"title":1366},"\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":1368,"title":1369},"\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":1371,"title":1372},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering","JavaScript Hydration & Partial Rendering",{"path":1374,"title":1375},"\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":1377,"title":1378},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components","Replacing React Islands with Web Components",{"path":1380,"title":1381},"\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":1383,"title":1384},"\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":1386,"title":1387},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites","Largest Contentful Paint Optimization for Static Sites",{"path":1389,"title":1390},"\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":1392,"title":1393},"\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":1395,"title":1396},"\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":1398,"title":1399},"\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":1401,"title":1402},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci","Performance Budgets and Lighthouse CI",{"path":1404,"title":1405},"\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":1407,"title":1408},"\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":1410,"title":1411},"\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":1413,"title":1414},"\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":1416,"title":1417},"\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":1419,"title":1420},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fauditing-unused-preloads","Auditing Unused Preloads",{"path":1422,"title":1423},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed","Resource Hints and Navigation Speed",{"path":1425,"title":1426},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Finstant-navigation-with-speculation-rules","Instant Navigation with Speculation Rules",{"path":1428,"title":1429},"\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":1431,"title":1432},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fprefetching-links-in-astro","Prefetching Links in Astro",{"path":1434,"title":1066},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fview-transitions-on-multi-page-static-sites",{"path":1436,"title":1437},"\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":1439,"title":1440},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites","Third-Party Script Performance on Static Sites",{"path":1442,"title":1443},"\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":1445,"title":1446},"\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":1448,"title":1449},"\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":1451,"title":1452},"\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":1454,"title":1455},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fautomating-eleventy-deployments-with-cloudflare-pages","Automating Eleventy Deployments on Cloudflare Pages",{"path":1457,"title":1458},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fconfiguring-redirects-on-cloudflare-pages","Configuring Redirects on Cloudflare Pages",{"path":1460,"title":1461},"\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":1463,"title":1464},"\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":1466,"title":1467},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup","Cloudflare Pages Edge Caching Setup",{"path":1469,"title":1470},"\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":1472,"title":1473},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fchecking-links-in-pull-requests","Checking Links in Pull Requests",{"path":1475,"title":1476},"\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":1478,"title":1479},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Feditorial-checks-with-vale-in-ci","Editorial Checks with Vale in CI",{"path":1481,"title":1482},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams","Content Workflows for Documentation Teams",{"path":1484,"title":1485},"\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":1487,"title":1488},"\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":1490,"title":1491},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fbuilding-astro-sites-with-github-actions","Building Astro Sites with GitHub Actions",{"path":1493,"title":1494},"\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":1496,"title":1497},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-github-pages-with-actions","Deploying to GitHub Pages with Actions",{"path":1499,"title":1500},"\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":1502,"title":1503},"\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":1505,"title":1506},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds","GitHub Actions for Automated SSG Builds",{"path":1508,"title":1509},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fmatrix-builds-for-multi-site-monorepos","Matrix Builds for Multi-Site Monorepos",{"path":1511,"title":1512},"\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":1514,"title":1515},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy","Enabling Incremental Builds in Eleventy",{"path":1517,"title":1518},"\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":1520,"title":1521},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs","Incremental Builds and Build Caching for SSGs",{"path":1523,"title":1524},"\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":1526,"title":1527},"\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":1529,"title":1530},"\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":1532,"title":1533},"\u002Fproduction-ready-deployment-cicd-workflows","Production-Ready Deployment & CI\u002FCD for SSGs",{"path":1535,"title":1536},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Falerting-on-cache-hit-ratio-drops","Alerting on Cache Hit Ratio Drops",{"path":1538,"title":1539},"\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":1541,"title":1542},"\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":1544,"title":1545},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production","Monitoring Static Sites in Production",{"path":1547,"title":1548},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Flogging-404s-at-the-edge","Logging 404s at the Edge",{"path":1550,"title":1551},"\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":1553,"title":1554},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-vercel-for-hugo-and-eleventy","Configuring Vercel for Hugo and Eleventy",{"path":1556,"title":1557},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies","Netlify vs Vercel Deployment Strategies",{"path":1559,"title":1560},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-build-hooks-for-content-updates","Netlify Build Hooks for Content Updates",{"path":1562,"title":1563},"\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":1565,"title":1566},"\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":1568,"title":1569},"\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":1571,"title":1572},"\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":1574,"title":1575},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments","Cleaning Up Stale Preview Deployments",{"path":1577,"title":1578},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests","Preview Environments for Pull Requests",{"path":1580,"title":1581},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpassword-protecting-preview-deployments","Password-Protecting Preview Deployments",{"path":1583,"title":1584},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreviewing-headless-cms-drafts","Previewing Headless CMS Drafts",{"path":1586,"title":1587},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fvisual-regression-testing-on-preview-deploys","Visual Regression Testing on Preview Deploys",{"path":1589,"title":1590},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads","Atomic Deploys vs Incremental Uploads",{"path":1592,"title":1593},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fcanary-releases-for-static-sites","Canary Releases for Static Sites",{"path":1595,"title":1596},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Ffeature-flags-on-static-sites","Feature Flags on Static Sites",{"path":1598,"title":1599},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites","Rollbacks and Deploy Safety for Static Sites",{"path":1601,"title":1602},"\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":1604,"title":1605},"\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":1607,"title":1608},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines","Auditing npm Dependencies in SSG Pipelines",{"path":1610,"title":1611},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fenabling-hsts-and-preload-safely","Enabling HSTS and Preload Safely",{"path":1613,"title":1614},"\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":1616,"title":1617},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites","Security Headers and Hardening for Static Sites",{"path":1619,"title":1620},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc","Securing Deploy Credentials with GitHub OIDC",{"path":1622,"title":1623},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsubresource-integrity-for-third-party-assets","Subresource Integrity for Third-Party Assets",{"path":1625,"title":1626},"\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":1628,"title":1629},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3","Clean URLs and Trailing Slashes on S3",{"path":1631,"title":1632},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects","CloudFront Functions for Redirects",{"path":1634,"title":1635},"\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":1637,"title":1638},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites","Self-Hosting Static Sites on S3, Nginx and Caddy",{"path":1640,"title":1641},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy","Serving a Static Site with Caddy",{"path":1643,"title":1644},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-nginx","Serving a Static Site with Nginx",{"path":1646,"title":1647},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fzero-downtime-deploys-with-symlink-swaps","Zero-Downtime Deploys with Symlink Swaps",{"path":1649,"title":1650},"\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":1652,"title":1653},"\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":1655,"title":1656},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites","Serverless Functions for Static Sites",{"path":1658,"title":1659},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnetlify-functions-vs-cloudflare-workers","Netlify Functions vs Cloudflare Workers",{"path":1661,"title":1662},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication","Protecting a Static Site Behind Authentication",{"path":1664,"title":1665},"\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",1789722847095]