[{"data":1,"prerenderedAt":1662},["ShallowReactive",2],{"page:\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Frunning-third-party-scripts-in-a-web-worker-with-partytown":3,"all-docs-nav":1120},{"id":4,"title":5,"body":6,"breadcrumb":1095,"dateModified":1105,"datePublished":1105,"description":1106,"extension":1107,"faq":1108,"meta":1113,"navigation":1114,"path":1115,"seo":1116,"slug":12,"stem":1117,"type":1118,"__hash__":1119},"content\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Frunning-third-party-scripts-in-a-web-worker-with-partytown\u002Findex.md","Running Third-Party Scripts in a Web Worker with Partytown",{"type":7,"value":8,"toc":1076},"minimark",[9,13,17,26,31,48,52,76,219,233,237,244,271,334,356,363,451,466,470,489,637,644,648,651,754,757,761,778,827,901,905,908,934,937,941,944,948,991,995,998,1002,1007,1010,1014,1017,1021,1024,1028,1031,1035,1072],[10,11,5],"h1",{"id":12},"running-third-party-scripts-in-a-web-worker-with-partytown",[14,15,16],"p",{},"Most third-party scripts on a static site — analytics, tag managers, advertising pixels — do not need to run on the main thread. They collect a few values, wait for events and send beacons. But they run there anyway, and their startup work and event listeners compete with the reader's taps and scrolls. Partytown is a small library that runs such scripts inside a web worker and proxies their DOM access back to the main thread, so their execution time no longer blocks interactions.",[14,18,19,20,25],{},"It is not a free win. Proxying DOM calls is slower than making them directly, some scripts break, and cross-origin scripts need a proxy. This guide sets Partytown up on a static site, shows which scripts are good candidates, and measures the effect on INP. It is part of ",[21,22,24],"a",{"href":23},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002F","Third-Party Script Performance on Static Sites",".",[27,28,30],"h2",{"id":29},"prerequisites","Prerequisites",[32,33,34,42,45],"ul",{},[35,36,37,38,25],"li",{},"A static site with third-party scripts you have already audited and trimmed — see ",[21,39,41],{"href":40},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fauditing-third-party-scripts-with-lighthouse\u002F","Auditing Third-Party Scripts With Lighthouse",[35,43,44],{},"The ability to add a reverse proxy rule on your CDN or host.",[35,46,47],{},"INP field data with script attribution, to confirm the benefit.",[27,49,51],{"id":50},"how-it-works","How It Works",[14,53,54,55,59,60,63,64,67,68,71,72,75],{},"Partytown's main-thread library is tiny. It finds ",[56,57,58],"code",{},"\u003Cscript type=\"text\u002Fpartytown\">"," elements, which browsers ignore because of the unknown type, and runs their contents in a web worker. Inside the worker, ",[56,61,62],{},"window"," and ",[56,65,66],{},"document"," are proxies. When a script reads ",[56,69,70],{},"document.title"," or calls ",[56,73,74],{},"document.createElement",", the proxy sends a synchronous request to the main thread, which performs the operation and returns the result.",[77,78,79,215],"figure",{},[80,81,88,89,88,93,88,97,88,104,88,122],"svg",{"viewBox":82,"role":83,"ariaLabelledBy":84,"xmlns":87},"0 0 760 270","img",[85,86],"pty-arch-title","pty-arch-desc","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","\n  ",[90,91,92],"title",{"id":85},"Partytown architecture",[94,95,96],"desc",{"id":86},"The main thread runs the page, Partytown's small library and a service worker or Atomics bridge. The web worker runs third-party scripts against proxied window and document objects. DOM reads and writes from the worker travel through the bridge to the main thread synchronously. Network requests from the worker go through a reverse proxy when the vendor lacks CORS headers.",[98,99],"rect",{"x":100,"y":100,"width":101,"height":102,"fill":103},"0","760","270","#ffffff",[105,106,107,108,88],"defs",{},"\n    ",[109,110,117],"marker",{"id":111,"viewBox":112,"refX":113,"refY":114,"markerWidth":115,"markerHeight":115,"orient":116},"pty-arch-arrow","0 0 10 10","9","5","7","auto-start-reverse",[118,119],"path",{"d":120,"fill":121},"M0,0 L10,5 L0,10 z","#556071",[123,124,107,126,107,134,107,143,107,149,107,153,107,157,107,161,107,168,107,172,107,177,107,181,107,185,107,189,107,192,107,195,107,202,107,206,107,210,88],"g",{"style":125},"font-family:system-ui, sans-serif;font-size:12px",[127,128,133],"text",{"x":129,"y":130,"fill":131,"style":132},"380","26","#1f2937","font-size:16px;font-weight:700;text-anchor:middle","Third-party code off the main thread",[98,135],{"x":136,"y":137,"width":138,"height":139,"rx":140,"fill":141,"style":142,"stroke":141},"30","50","250","160","8","#166a9e","fill-opacity:0.08",[127,144,148],{"x":145,"y":146,"fill":141,"style":147},"155","74","font-weight:700;text-anchor:middle","Main thread",[127,150,152],{"x":137,"y":151,"fill":131},"102","page, site scripts, input handling",[127,154,156],{"x":137,"y":155,"fill":131},"126","Partytown library (small)",[127,158,160],{"x":137,"y":159,"fill":131},"150","real DOM",[98,162],{"x":163,"y":164,"width":139,"height":165,"rx":140,"fill":166,"style":167,"stroke":166},"300","92","60","#6a4c93","fill-opacity:0.12",[127,169,171],{"x":129,"y":170,"fill":166,"style":147},"118","sync bridge",[127,173,176],{"x":129,"y":174,"fill":121,"style":175},"136","font-size:11px;text-anchor:middle","Atomics or service worker",[98,178],{"x":179,"y":137,"width":138,"height":139,"rx":140,"fill":180,"style":142,"stroke":180},"480","#3f6410",[127,182,184],{"x":183,"y":146,"fill":180,"style":147},"605","Web worker",[127,186,188],{"x":187,"y":151,"fill":131},"500","gtag, pixels, tag scripts",[127,190,191],{"x":187,"y":155,"fill":131},"proxied window, document",[127,193,194],{"x":187,"y":159,"fill":131},"fetch, sendBeacon",[196,197],"line",{"x1":198,"y1":199,"x2":200,"y2":199,"stroke":121,"style":201},"476","120","464","stroke-width:1.5px;marker-end:url(#pty-arch-arrow)",[196,203],{"x1":204,"y1":199,"x2":205,"y2":199,"stroke":121,"style":201},"296","284",[196,207],{"x1":183,"y1":208,"x2":183,"y2":209,"stroke":121,"style":201},"210","236",[127,211,214],{"x":183,"y":212,"fill":131,"style":213},"254","text-anchor:middle","reverse proxy → vendor (adds CORS)",[216,217,218],"figcaption",{},"Each DOM access from the worker is a round trip through the bridge, which is why DOM-heavy scripts are poor candidates.",[14,220,221,222,225,226,63,229,232],{},"The synchronous bridge uses ",[56,223,224],{},"Atomics.wait"," when the page is cross-origin isolated, and a service worker otherwise. Cross-origin isolation requires ",[56,227,228],{},"Cross-Origin-Opener-Policy",[56,230,231],{},"Cross-Origin-Embedder-Policy"," headers, which can break embeds, so most static sites use the service worker path.",[27,234,236],{"id":235},"setting-it-up","Setting It Up",[14,238,239,243],{},[240,241,242],"strong",{},"Astro."," Install the official integration, which copies the library into the build and adds the snippet:",[245,246,251],"pre",{"className":247,"code":248,"language":249,"meta":250,"style":250},"language-bash shiki shiki-themes github-light github-dark","npx astro add partytown\n","bash","",[56,252,253],{"__ignoreMap":250},[254,255,257,261,265,268],"span",{"class":196,"line":256},1,[254,258,260],{"class":259},"sScJk","npx",[254,262,264],{"class":263},"sZZnC"," astro",[254,266,267],{"class":263}," add",[254,269,270],{"class":263}," partytown\n",[245,272,276],{"className":273,"code":274,"language":275,"meta":250,"style":250},"language-js shiki shiki-themes github-light github-dark","\u002F\u002F astro.config.mjs\nimport partytown from '@astrojs\u002Fpartytown';\nexport default { integrations: [partytown({ config: { forward: ['dataLayer.push', 'gtag'] } })] };\n","js",[56,277,278,284,304],{"__ignoreMap":250},[254,279,280],{"class":196,"line":256},[254,281,283],{"class":282},"sJ8bj","\u002F\u002F astro.config.mjs\n",[254,285,287,291,295,298,301],{"class":196,"line":286},2,[254,288,290],{"class":289},"szBVR","import",[254,292,294],{"class":293},"sVt8B"," partytown ",[254,296,297],{"class":289},"from",[254,299,300],{"class":263}," '@astrojs\u002Fpartytown'",[254,302,303],{"class":293},";\n",[254,305,307,310,313,316,319,322,325,328,331],{"class":196,"line":306},3,[254,308,309],{"class":289},"export",[254,311,312],{"class":289}," default",[254,314,315],{"class":293}," { integrations: [",[254,317,318],{"class":259},"partytown",[254,320,321],{"class":293},"({ config: { forward: [",[254,323,324],{"class":263},"'dataLayer.push'",[254,326,327],{"class":293},", ",[254,329,330],{"class":263},"'gtag'",[254,332,333],{"class":293},"] } })] };\n",[14,335,336,339,340,343,344,347,348,351,352,355],{},[240,337,338],{},"Hugo, Eleventy and others."," Copy the files from ",[56,341,342],{},"@builder.io\u002Fpartytown\u002Flib"," into a static folder such as ",[56,345,346],{},"\u002F~partytown\u002F"," during the build (",[56,349,350],{},"npx partytown copylib static\u002F~partytown","), and inline the Partytown snippet in the ",[56,353,354],{},"\u003Chead>"," before any partytown scripts.",[14,357,358,359,362],{},"Then change the ",[56,360,361],{},"type"," of each script you want to move:",[245,364,368],{"className":365,"code":366,"language":367,"meta":250,"style":250},"language-html shiki shiki-themes github-light github-dark","\u003Cscript type=\"text\u002Fpartytown\" src=\"https:\u002F\u002Fwww.googletagmanager.com\u002Fgtag\u002Fjs?id=G-XXXX\">\u003C\u002Fscript>\n\u003Cscript type=\"text\u002Fpartytown\">\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n  gtag('js', new Date());\n  gtag('config', 'G-XXXX');\n\u003C\u002Fscript>\n","html",[56,369,370,404,418,423,429,435,441],{"__ignoreMap":250},[254,371,372,375,379,382,385,388,391,393,396,399,401],{"class":196,"line":256},[254,373,374],{"class":293},"\u003C",[254,376,378],{"class":377},"s9eBZ","script",[254,380,381],{"class":259}," type",[254,383,384],{"class":293},"=",[254,386,387],{"class":263},"\"text\u002Fpartytown\"",[254,389,390],{"class":259}," src",[254,392,384],{"class":293},[254,394,395],{"class":263},"\"https:\u002F\u002Fwww.googletagmanager.com\u002Fgtag\u002Fjs?id=G-XXXX\"",[254,397,398],{"class":293},">\u003C\u002F",[254,400,378],{"class":377},[254,402,403],{"class":293},">\n",[254,405,406,408,410,412,414,416],{"class":196,"line":286},[254,407,374],{"class":293},[254,409,378],{"class":377},[254,411,381],{"class":259},[254,413,384],{"class":293},[254,415,387],{"class":263},[254,417,403],{"class":293},[254,419,420],{"class":196,"line":306},[254,421,422],{"class":293},"  window.dataLayer = window.dataLayer || [];\n",[254,424,426],{"class":196,"line":425},4,[254,427,428],{"class":293},"  function gtag(){dataLayer.push(arguments);}\n",[254,430,432],{"class":196,"line":431},5,[254,433,434],{"class":293},"  gtag('js', new Date());\n",[254,436,438],{"class":196,"line":437},6,[254,439,440],{"class":293},"  gtag('config', 'G-XXXX');\n",[254,442,444,447,449],{"class":196,"line":443},7,[254,445,446],{"class":293},"\u003C\u002F",[254,448,378],{"class":377},[254,450,403],{"class":293},[14,452,453,454,457,458,461,462,465],{},"The ",[56,455,456],{},"forward"," option is what lets main-thread code keep calling ",[56,459,460],{},"gtag()"," or ",[56,463,464],{},"dataLayer.push()","; Partytown creates stub functions on the main thread that forward calls into the worker.",[27,467,469],{"id":468},"handling-cross-origin-scripts","Handling Cross-Origin Scripts",[14,471,472,473,476,477,480,481,484,485,488],{},"A normal ",[56,474,475],{},"\u003Cscript src>"," can load from any origin. A worker loads code with ",[56,478,479],{},"fetch",", which is subject to CORS, and many tag vendors do not send ",[56,482,483],{},"Access-Control-Allow-Origin",". The fix is a reverse proxy on your own domain and Partytown's ",[56,486,487],{},"resolveUrl"," hook to route requests through it:",[245,490,492],{"className":273,"code":491,"language":275,"meta":250,"style":250},"partytown({\n  config: {\n    forward: ['dataLayer.push'],\n    resolveUrl(url) {\n      if (url.hostname === 'connect.facebook.net') {\n        const proxy = new URL('\u002Fproxy\u002Ffb\u002F', location.origin);\n        proxy.pathname += url.pathname.slice(1);\n        return proxy;\n      }\n      return url;\n    },\n  },\n});\n",[56,493,494,501,506,516,531,547,573,595,604,610,619,625,631],{"__ignoreMap":250},[254,495,496,498],{"class":196,"line":256},[254,497,318],{"class":259},[254,499,500],{"class":293},"({\n",[254,502,503],{"class":196,"line":286},[254,504,505],{"class":293},"  config: {\n",[254,507,508,511,513],{"class":196,"line":306},[254,509,510],{"class":293},"    forward: [",[254,512,324],{"class":263},[254,514,515],{"class":293},"],\n",[254,517,518,521,524,528],{"class":196,"line":425},[254,519,520],{"class":259},"    resolveUrl",[254,522,523],{"class":293},"(",[254,525,527],{"class":526},"s4XuR","url",[254,529,530],{"class":293},") {\n",[254,532,533,536,539,542,545],{"class":196,"line":431},[254,534,535],{"class":289},"      if",[254,537,538],{"class":293}," (url.hostname ",[254,540,541],{"class":289},"===",[254,543,544],{"class":263}," 'connect.facebook.net'",[254,546,530],{"class":293},[254,548,549,552,556,559,562,565,567,570],{"class":196,"line":437},[254,550,551],{"class":289},"        const",[254,553,555],{"class":554},"sj4cs"," proxy",[254,557,558],{"class":289}," =",[254,560,561],{"class":289}," new",[254,563,564],{"class":259}," URL",[254,566,523],{"class":293},[254,568,569],{"class":263},"'\u002Fproxy\u002Ffb\u002F'",[254,571,572],{"class":293},", location.origin);\n",[254,574,575,578,581,584,587,589,592],{"class":196,"line":443},[254,576,577],{"class":293},"        proxy.pathname ",[254,579,580],{"class":289},"+=",[254,582,583],{"class":293}," url.pathname.",[254,585,586],{"class":259},"slice",[254,588,523],{"class":293},[254,590,591],{"class":554},"1",[254,593,594],{"class":293},");\n",[254,596,598,601],{"class":196,"line":597},8,[254,599,600],{"class":289},"        return",[254,602,603],{"class":293}," proxy;\n",[254,605,607],{"class":196,"line":606},9,[254,608,609],{"class":293},"      }\n",[254,611,613,616],{"class":196,"line":612},10,[254,614,615],{"class":289},"      return",[254,617,618],{"class":293}," url;\n",[254,620,622],{"class":196,"line":621},11,[254,623,624],{"class":293},"    },\n",[254,626,628],{"class":196,"line":627},12,[254,629,630],{"class":293},"  },\n",[254,632,634],{"class":196,"line":633},13,[254,635,636],{"class":293},"});\n",[14,638,639,640,643],{},"On Cloudflare, a small Worker route or a Transform Rule can serve ",[56,641,642],{},"\u002Fproxy\u002Ffb\u002F*"," from the vendor with a CORS header added; on Netlify and Vercel, a rewrite rule does the same. Keep the proxy narrow — only the hosts you need — so it cannot be used as an open relay.",[27,645,647],{"id":646},"which-scripts-to-move","Which Scripts to Move",[14,649,650],{},"Test each script individually; compatibility depends on how the script uses the DOM.",[77,652,653,751],{},[80,654,88,659,88,662,88,665,88,668],{"viewBox":655,"role":83,"ariaLabelledBy":656,"xmlns":87},"0 0 760 290",[657,658],"pty-fit-title","pty-fit-desc",[90,660,661],{"id":657},"Typical Partytown compatibility by script type",[94,663,664],{"id":658},"Good candidates: Google Analytics 4 via gtag, simple GTM containers, Meta, LinkedIn and TikTok pixels. Test carefully: GTM with custom HTML tags, heatmap recorders, and consent-dependent tags. Keep on the main thread: chat widgets, consent banners, A\u002FB testing snippets, and embeds that render UI.",[98,666],{"x":100,"y":100,"width":101,"height":667,"fill":103},"290",[123,669,107,670,107,673,107,678,107,683,107,688,107,692,107,696,107,700,107,704,107,707,107,710,107,714,107,717,107,720,107,723,107,727,107,732,107,736,107,739,107,742,107,745,107,748,88],{"style":125},[127,671,672],{"x":129,"y":130,"fill":131,"style":132},"Where each kind of script belongs",[98,674],{"x":136,"y":675,"width":676,"height":676,"rx":140,"fill":180,"style":677,"stroke":180},"46","220","fill-opacity:0.1",[127,679,682],{"x":680,"y":681,"fill":180,"style":147},"140","72","Good in a worker",[127,684,687],{"x":685,"y":686,"fill":131},"48","104","GA4 via gtag.js",[127,689,691],{"x":685,"y":690,"fill":131},"130","simple GTM containers",[127,693,695],{"x":685,"y":694,"fill":131},"156","Meta, LinkedIn pixels",[127,697,699],{"x":685,"y":698,"fill":131},"182","TikTok, Reddit pixels",[127,701,703],{"x":685,"y":702,"fill":131},"208","conversion beacons",[98,705],{"x":102,"y":675,"width":676,"height":676,"rx":140,"fill":706,"style":677,"stroke":706},"#8a6d0f",[127,708,709],{"x":129,"y":681,"fill":706,"style":147},"Test carefully",[127,711,713],{"x":712,"y":686,"fill":131},"288","GTM with custom HTML tags",[127,715,716],{"x":712,"y":690,"fill":131},"session recorders",[127,718,719],{"x":712,"y":694,"fill":131},"scroll-depth trackers",[127,721,722],{"x":712,"y":698,"fill":131},"consent-gated tags",[98,724],{"x":725,"y":675,"width":676,"height":676,"rx":140,"fill":726,"style":142,"stroke":726},"510","#d83b41",[127,728,731],{"x":729,"y":681,"fill":730,"style":147},"620","#b32b30","Keep on main thread",[127,733,735],{"x":734,"y":686,"fill":131},"528","chat widgets",[127,737,738],{"x":734,"y":690,"fill":131},"consent banners",[127,740,741],{"x":734,"y":694,"fill":131},"A\u002FB testing snippets",[127,743,744],{"x":734,"y":698,"fill":131},"video and map embeds",[127,746,747],{"x":734,"y":702,"fill":131},"anything that renders UI",[127,749,750],{"x":129,"y":205,"fill":121,"style":175},"confirm each move in the vendor's own debugger, not only in DevTools",[216,752,753],{},"Data collectors move well; anything the reader sees or interacts with should stay.",[14,755,756],{},"After moving a script, confirm it still does its job in the vendor's tool: GA4 DebugView, Meta's Pixel Helper, LinkedIn's Insight Tag status. A script can load without errors in the worker and still send nothing.",[27,758,760],{"id":759},"debugging","Debugging",[14,762,763,764,767,768,327,771,63,774,777],{},"Partytown has a ",[56,765,766],{},"debug: true"," option that logs every proxied call with its timing, and ",[56,769,770],{},"logCalls",[56,772,773],{},"logGetters",[56,775,776],{},"logSetters"," options for more detail. Common problems:",[32,779,780,786,794,804,818],{},[35,781,782,785],{},[240,783,784],{},"Script loads but sends nothing."," Usually a CORS failure on a secondary script the tag loads; add it to the proxy.",[35,787,788,791,792,25],{},[240,789,790],{},"Events pushed from the page never arrive."," The function name is missing from ",[56,793,456],{},[35,795,796,803],{},[240,797,798,799,802],{},"Script throws on ",[56,800,801],{},"document.currentScript"," or layout reads."," It needs synchronous main-thread access; keep it out of the worker.",[35,805,806,809,810,813,814,817],{},[240,807,808],{},"Tags fire twice."," The original ",[56,811,812],{},"\u003Cscript>"," without ",[56,815,816],{},"type=\"text\u002Fpartytown\""," is still present in another template.",[35,819,820,823,824,25],{},[240,821,822],{},"Nothing runs after a deploy."," The library files were not copied into the new build, so the worker script returns 404; check the network panel for ",[56,825,826],{},"partytown-sw.js",[77,828,829,898],{},[80,830,88,835,88,838,88,841,88,844],{"viewBox":831,"role":83,"ariaLabelledBy":832,"xmlns":87},"0 0 760 240",[833,834],"pty-res-title","pty-res-desc",[90,836,837],{"id":833},"Main-thread time from third-party scripts before and after Partytown",[94,839,840],{"id":834},"In the first ten seconds on a throttled phone, third-party scripts used 410 milliseconds of main-thread time before, and 70 milliseconds after moving GA4, GTM and two pixels to Partytown. Field INP p75 went from 220 to 160 milliseconds.",[98,842],{"x":100,"y":100,"width":101,"height":843,"fill":103},"240",[123,845,107,846,107,850,107,855,107,859,107,863,107,868,107,873,107,876,107,880,107,883,107,886,107,890,107,894,88],{"style":125},[127,847,849],{"x":129,"y":848,"fill":131,"style":132},"28","Before and after moving four scripts",[196,851],{"x1":165,"y1":852,"x2":853,"y2":852,"stroke":121,"style":854},"190","700","stroke-width:1.5px",[98,856],{"x":199,"y":165,"width":857,"height":690,"fill":726,"style":858},"80","fill-opacity:0.45",[127,860,862],{"x":139,"y":861,"fill":131,"style":213},"54","410 ms",[98,864],{"x":676,"y":865,"width":857,"height":866,"fill":180,"style":867},"168","22","fill-opacity:0.55",[127,869,872],{"x":870,"y":871,"fill":131,"style":213},"260","162","70 ms",[127,874,875],{"x":208,"y":208,"fill":121,"style":213},"third-party main-thread time",[98,877],{"x":878,"y":857,"width":857,"height":879,"fill":726,"style":858},"460","110",[127,881,882],{"x":187,"y":146,"fill":131,"style":213},"220 ms",[98,884],{"x":885,"y":879,"width":857,"height":857,"fill":180,"style":867},"560",[127,887,889],{"x":888,"y":686,"fill":131,"style":213},"600","160 ms",[127,891,893],{"x":892,"y":208,"fill":121,"style":213},"550","field INP p75, mobile",[127,895,897],{"x":129,"y":896,"fill":121,"style":175},"232","remaining 70 ms is Partytown's own library, the proxied DOM calls and the consent banner",[216,899,900],{},"Most of the third-party work moved to the worker; the proxy overhead stayed small.",[27,902,904],{"id":903},"alternatives-worth-comparing","Alternatives Worth Comparing",[14,906,907],{},"Partytown is one way to take third-party work off the main thread. Before committing to it, compare it with the options that remove the work entirely:",[32,909,910,916,922,928],{},[35,911,912,915],{},[240,913,914],{},"Server-side tagging."," A server-side GTM container or a vendor's conversion API receives one first-party beacon from the page and forwards events to each vendor from the server. The browser runs one small script instead of several, and no proxying is needed. It costs a small hosted service, but it also improves data quality under ad blockers.",[35,917,918,921],{},[240,919,920],{},"Edge collection."," A Cloudflare Worker or similar edge function can receive a beacon and forward it to GA4's Measurement Protocol, with no vendor script on the page at all.",[35,923,924,927],{},[240,925,926],{},"Lighter first-party analytics."," Self-hosted analytics with a 1–2 KB script often replaces GA4 for content sites that only need page and referrer data.",[35,929,930,933],{},[240,931,932],{},"Delayed loading."," Loading scripts after the page is idle keeps them out of the first interactions, which is where most INP problems appear, and is far simpler to operate.",[14,935,936],{},"Partytown fits best when the scripts must stay client-side, cannot be delayed further, and are simple data collectors. When a script has a server-side alternative, that alternative is usually both faster and more robust.",[27,938,940],{"id":939},"measured-impact","Measured Impact",[14,942,943],{},"A 450-page marketing and documentation site built with Astro loaded GA4, a GTM container with six simple tags, and the Meta and LinkedIn pixels. Moving all four to Partytown, with a Cloudflare Worker proxy for the two pixel hosts, reduced third-party main-thread time in the first ten seconds from 410 to 70 milliseconds on a throttled phone. Field INP p75 on mobile fell from 220 to 160 milliseconds. GA4 event counts were within 1% of the previous period; the Meta pixel initially under-reported by 12% until a missing secondary script host was added to the proxy.",[27,945,947],{"id":946},"pitfalls-rollback","Pitfalls & Rollback",[32,949,950,956,962,972,982],{},[35,951,952,955],{},[240,953,954],{},"Moving everything at once."," Move one script per release so a data gap can be traced.",[35,957,958,961],{},[240,959,960],{},"Forgetting the proxy."," Without it, many scripts fail silently on CORS.",[35,963,964,967,968,25],{},[240,965,966],{},"Relying on it instead of trimming."," A script you do not need is cheaper deleted than moved; see ",[21,969,971],{"href":970},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Floading-google-tag-manager-without-hurting-inp\u002F","Loading Google Tag Manager Without Hurting INP",[35,973,974,977,978,25],{},[240,975,976],{},"Security headers."," A strict Content Security Policy must allow the worker and the proxy path; see ",[21,979,981],{"href":980},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fwriting-a-content-security-policy-for-a-static-site\u002F","Writing a Content Security Policy for a Static Site",[35,983,984,987,988,990],{},[240,985,986],{},"Rollback:"," change ",[56,989,816],{}," back to a normal script; nothing else depends on Partytown.",[27,992,994],{"id":993},"conclusion","Conclusion",[14,996,997],{},"Partytown is a targeted tool: it takes data-collection scripts that have no reason to run on the main thread and moves them to a web worker, cutting the long tasks that delay interactions. Set it up with the official integration or the copied library, add a narrow reverse proxy for vendors without CORS headers, move scripts one at a time and verify each in the vendor's debugger. Keep UI-rendering and consent scripts on the main thread, and trim before you move.",[27,999,1001],{"id":1000},"faq","FAQ",[1003,1004,1006],"h3",{"id":1005},"what-does-partytown-do","What does Partytown do?",[14,1008,1009],{},"It runs scripts marked with type text\u002Fpartytown inside a web worker instead of on the main thread. When those scripts read or write the DOM, Partytown proxies the calls to the main thread, so most analytics and pixel scripts work unchanged while their execution time moves off the main thread.",[1003,1011,1013],{"id":1012},"which-scripts-work-well-in-partytown","Which scripts work well in Partytown?",[14,1015,1016],{},"Scripts that mostly collect data and send it somewhere - Google Analytics, Google Tag Manager with simple tags, Meta and LinkedIn pixels, many heatmap loaders. Scripts that render UI, need synchronous event handling or measure layout precisely tend to break or behave oddly.",[1003,1018,1020],{"id":1019},"does-partytown-need-special-server-configuration","Does Partytown need special server configuration?",[14,1022,1023],{},"Partytown's library files must be served from your own origin, and third-party scripts loaded in the worker need CORS headers or a proxy. Many tag vendors do not send CORS headers, so a small reverse proxy on your CDN is usually required.",[1003,1025,1027],{"id":1026},"is-partytown-still-maintained","Is Partytown still maintained?",[14,1029,1030],{},"It is maintained by the Qwik team and used through official integrations for Astro, Nuxt and Next.js, but development is slower than in its early years. Treat it as a useful tool for specific scripts, and test each upgrade, rather than a default for all third-party code.",[27,1032,1034],{"id":1033},"related","Related",[32,1036,1037,1046,1051,1058,1065],{},[35,1038,1039,1042,1043,1045],{},[240,1040,1041],{},"Parent:"," ",[21,1044,24],{"href":23}," — every third-party pattern.",[35,1047,1048,1050],{},[21,1049,971],{"href":970}," — the simpler first step.",[35,1052,1053,1057],{},[21,1054,1056],{"href":1055},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fself-hosting-analytics-to-cut-third-party-requests\u002F","Self-Hosting Analytics to Cut Third-Party Requests"," — removing the script entirely.",[35,1059,1060,1064],{},[21,1061,1063],{"href":1062},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fproxying-third-party-apis-from-an-edge-function\u002F","Proxying Third-Party APIs from an Edge Function"," — building the CORS proxy.",[35,1066,1067,1071],{},[21,1068,1070],{"href":1069},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fmeasuring-inp-on-static-sites-with-real-user-monitoring\u002F","Measuring INP on Static Sites with Real User Monitoring"," — confirming the gain.",[1073,1074,1075],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}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 .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 .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}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}",{"title":250,"searchDepth":286,"depth":286,"links":1077},[1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1094],{"id":29,"depth":286,"text":30},{"id":50,"depth":286,"text":51},{"id":235,"depth":286,"text":236},{"id":468,"depth":286,"text":469},{"id":646,"depth":286,"text":647},{"id":759,"depth":286,"text":760},{"id":903,"depth":286,"text":904},{"id":939,"depth":286,"text":940},{"id":946,"depth":286,"text":947},{"id":993,"depth":286,"text":994},{"id":1000,"depth":286,"text":1001,"children":1089},[1090,1091,1092,1093],{"id":1005,"depth":306,"text":1006},{"id":1012,"depth":306,"text":1013},{"id":1019,"depth":306,"text":1020},{"id":1026,"depth":306,"text":1027},{"id":1033,"depth":286,"text":1034},[1096,1099,1102,1103],{"name":1097,"item":1098},"Home","\u002F",{"name":1100,"item":1101},"Performance Optimization & Core Web Vitals for SSGs","\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002F",{"name":24,"item":23},{"name":5,"item":1104},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Frunning-third-party-scripts-in-a-web-worker-with-partytown\u002F","2026-09-18","Partytown moves analytics and tag scripts into a web worker so they stop blocking the main thread. How to set it up on a static site and which scripts break.","md",[1109,1110,1111,1112],{"q":1006,"a":1009},{"q":1013,"a":1016},{"q":1020,"a":1023},{"q":1027,"a":1030},{},true,"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Frunning-third-party-scripts-in-a-web-worker-with-partytown",{"title":5,"description":1106},"performance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Frunning-third-party-scripts-in-a-web-worker-with-partytown\u002Findex","article","5JRhCPe7ZAbR521VjDQoB0MAGWyWvllvKg1JhnWdeys",[1121,1124,1127,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,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,1436,1439,1441,1443,1446,1448,1449,1451,1454,1457,1460,1463,1466,1469,1472,1475,1478,1481,1484,1487,1490,1493,1496,1499,1502,1505,1508,1511,1514,1517,1520,1523,1526,1529,1532,1535,1538,1541,1544,1547,1550,1553,1556,1559,1562,1565,1568,1571,1574,1577,1580,1583,1586,1589,1592,1595,1598,1601,1604,1607,1610,1613,1616,1619,1622,1624,1627,1630,1633,1636,1639,1642,1645,1648,1651,1654,1657,1660],{"path":1122,"title":1123},"\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":1125,"title":1126},"\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":1128,"title":1129},"\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":1131,"title":1132},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites","Astro vs Eleventy for Documentation Sites",{"path":1134,"title":1135},"\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":1137,"title":1138},"\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":1140,"title":1141},"\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":1143,"title":1144},"\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":1146,"title":1147},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress","Docs Frameworks: Docusaurus, Starlight and VitePress",{"path":1149,"title":1150},"\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":1152,"title":1153},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-from-mkdocs-to-starlight","Migrating from MkDocs to Starlight",{"path":1155,"title":1156},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioned-documentation-with-docusaurus","Versioned Documentation with Docusaurus",{"path":1158,"title":1159},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-for-library-documentation","VitePress for Library Documentation",{"path":1161,"title":1162},"\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":1164,"title":1165},"\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":1167,"title":1168},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories","Hugo Build Times for Large Repositories",{"path":1170,"title":1171},"\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":1173,"title":1174},"\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":1176,"title":1177},"\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":1179,"title":1180},"\u002Fchoosing-the-right-static-site-generator-for-production","Choosing the Right Static Site Generator for Production",{"path":1182,"title":1183},"\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":1185,"title":1186},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem","Jekyll Plugin Ecosystem",{"path":1188,"title":1189},"\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":1191,"title":1192},"\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":1194,"title":1195},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fspeeding-up-slow-jekyll-builds","Speeding Up Slow Jekyll Builds",{"path":1197,"title":1198},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fupgrading-jekyll-and-ruby-versions-safely","Upgrading Jekyll and Ruby Versions Safely",{"path":1200,"title":1201},"\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":1203,"title":1204},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators","Migrating Between Static Site Generators",{"path":1206,"title":1207},"\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":1209,"title":1210},"\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":1212,"title":1213},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-gatsby-to-astro","Migrating from Gatsby to Astro",{"path":1215,"title":1216},"\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":1218,"title":1219},"\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":1221,"title":1222},"\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":1224,"title":1225},"\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":1227,"title":1228},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites","Next.js Static Export for Content Sites",{"path":1230,"title":1231},"\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":1233,"title":1234},"\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":1236,"title":1237},"\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":1239,"title":1240},"\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":1242,"title":1243},"\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":1245,"title":1246},"\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":1248,"title":1249},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites","Search for Static Sites",{"path":1251,"title":1252},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind","Indexing Hugo Sites with Pagefind",{"path":1254,"title":1255},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites","Multilingual Search on Static Sites",{"path":1257,"title":1258},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch","Pagefind vs Algolia DocSearch",{"path":1260,"title":1261},"\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":1263,"title":1264},"\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":1266,"title":1267},"\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":1269,"title":1270},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fevaluating-ssg-accessibility-defaults","Evaluating SSG Accessibility Defaults",{"path":1272,"title":1273},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix","SSG Framework Selection Matrix",{"path":1275,"title":1276},"\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":1278,"title":1279},"\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":1281,"title":1282},"\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":1284,"title":1285},"\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":1287,"title":1288},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs","CDN Caching Rules for SSGs",{"path":1290,"title":1291},"\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":1293,"title":1294},"\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":1296,"title":1297},"\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":1299,"title":1300},"\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":1302,"title":1303},"\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":1305,"title":1306},"\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":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":1311,"title":1312},"\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":1314,"title":1315},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites","Cumulative Layout Shift Fixes for Static Sites",{"path":1317,"title":1318},"\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":1320,"title":1321},"\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":1323,"title":1324},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap","font-display: optional vs swap",{"path":1326,"title":1327},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites","Font Loading Strategies for Static Sites",{"path":1329,"title":1330},"\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":1332,"title":1333},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads","Preloading Fonts Without Double Downloads",{"path":1335,"title":1336},"\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":1338,"title":1339},"\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":1341,"title":1342},"\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":1344,"title":1345},"\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":1347,"title":1348},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro","Image Optimization Pipelines in Astro",{"path":1350,"title":1351},"\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":1353,"title":1354},"\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":1356,"title":1357},"\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":1359,"title":1360},"\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":1362,"title":1363},"\u002Fperformance-optimization-core-web-vitals-for-ssgs","Core Web Vitals Optimization for SSGs",{"path":1365,"title":1366},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fastro-islands-vs-full-hydration-performance","Astro Islands vs Full Hydration Performance",{"path":1368,"title":1369},"\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":1371,"title":1372},"\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":1374,"title":1375},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering","JavaScript Hydration & Partial Rendering",{"path":1377,"title":1378},"\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":1380,"title":1381},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components","Replacing React Islands with Web Components",{"path":1383,"title":1384},"\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":1386,"title":1387},"\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":1389,"title":1390},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites","Largest Contentful Paint Optimization for Static Sites",{"path":1392,"title":1393},"\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":1395,"title":1396},"\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":1398,"title":1399},"\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":1401,"title":1402},"\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":1404,"title":1405},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci","Performance Budgets and Lighthouse CI",{"path":1407,"title":1408},"\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":1410,"title":1411},"\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":1413,"title":1414},"\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":1416,"title":1417},"\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":1419,"title":1420},"\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":1422,"title":1423},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fauditing-unused-preloads","Auditing Unused Preloads",{"path":1425,"title":1426},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed","Resource Hints and Navigation Speed",{"path":1428,"title":1429},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Finstant-navigation-with-speculation-rules","Instant Navigation with Speculation Rules",{"path":1431,"title":1432},"\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":1434,"title":1435},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fprefetching-links-in-astro","Prefetching Links in Astro",{"path":1437,"title":1438},"\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":1440,"title":41},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fauditing-third-party-scripts-with-lighthouse",{"path":1442,"title":24},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites",{"path":1444,"title":1445},"\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":1447,"title":971},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Floading-google-tag-manager-without-hurting-inp",{"path":1115,"title":5},{"path":1450,"title":1056},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fself-hosting-analytics-to-cut-third-party-requests",{"path":1452,"title":1453},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fautomating-eleventy-deployments-with-cloudflare-pages","Automating Eleventy Deployments on Cloudflare Pages",{"path":1455,"title":1456},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fconfiguring-redirects-on-cloudflare-pages","Configuring Redirects on Cloudflare Pages",{"path":1458,"title":1459},"\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":1461,"title":1462},"\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":1464,"title":1465},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup","Cloudflare Pages Edge Caching Setup",{"path":1467,"title":1468},"\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":1470,"title":1471},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fchecking-links-in-pull-requests","Checking Links in Pull Requests",{"path":1473,"title":1474},"\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":1476,"title":1477},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Feditorial-checks-with-vale-in-ci","Editorial Checks with Vale in CI",{"path":1479,"title":1480},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams","Content Workflows for Documentation Teams",{"path":1482,"title":1483},"\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":1485,"title":1486},"\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":1488,"title":1489},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fbuilding-astro-sites-with-github-actions","Building Astro Sites with GitHub Actions",{"path":1491,"title":1492},"\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":1494,"title":1495},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-github-pages-with-actions","Deploying to GitHub Pages with Actions",{"path":1497,"title":1498},"\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":1500,"title":1501},"\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":1503,"title":1504},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds","GitHub Actions for Automated SSG Builds",{"path":1506,"title":1507},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fmatrix-builds-for-multi-site-monorepos","Matrix Builds for Multi-Site Monorepos",{"path":1509,"title":1510},"\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":1512,"title":1513},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy","Enabling Incremental Builds in Eleventy",{"path":1515,"title":1516},"\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":1518,"title":1519},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs","Incremental Builds and Build Caching for SSGs",{"path":1521,"title":1522},"\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":1524,"title":1525},"\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":1527,"title":1528},"\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":1530,"title":1531},"\u002Fproduction-ready-deployment-cicd-workflows","Production-Ready Deployment & CI\u002FCD for SSGs",{"path":1533,"title":1534},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Falerting-on-cache-hit-ratio-drops","Alerting on Cache Hit Ratio Drops",{"path":1536,"title":1537},"\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":1539,"title":1540},"\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":1542,"title":1543},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production","Monitoring Static Sites in Production",{"path":1545,"title":1546},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Flogging-404s-at-the-edge","Logging 404s at the Edge",{"path":1548,"title":1549},"\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":1551,"title":1552},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-vercel-for-hugo-and-eleventy","Configuring Vercel for Hugo and Eleventy",{"path":1554,"title":1555},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies","Netlify vs Vercel Deployment Strategies",{"path":1557,"title":1558},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-build-hooks-for-content-updates","Netlify Build Hooks for Content Updates",{"path":1560,"title":1561},"\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":1563,"title":1564},"\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":1566,"title":1567},"\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":1569,"title":1570},"\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":1572,"title":1573},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments","Cleaning Up Stale Preview Deployments",{"path":1575,"title":1576},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests","Preview Environments for Pull Requests",{"path":1578,"title":1579},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpassword-protecting-preview-deployments","Password-Protecting Preview Deployments",{"path":1581,"title":1582},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreviewing-headless-cms-drafts","Previewing Headless CMS Drafts",{"path":1584,"title":1585},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fvisual-regression-testing-on-preview-deploys","Visual Regression Testing on Preview Deploys",{"path":1587,"title":1588},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads","Atomic Deploys vs Incremental Uploads",{"path":1590,"title":1591},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fcanary-releases-for-static-sites","Canary Releases for Static Sites",{"path":1593,"title":1594},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Ffeature-flags-on-static-sites","Feature Flags on Static Sites",{"path":1596,"title":1597},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites","Rollbacks and Deploy Safety for Static Sites",{"path":1599,"title":1600},"\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":1602,"title":1603},"\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":1605,"title":1606},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines","Auditing npm Dependencies in SSG Pipelines",{"path":1608,"title":1609},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fenabling-hsts-and-preload-safely","Enabling HSTS and Preload Safely",{"path":1611,"title":1612},"\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":1614,"title":1615},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites","Security Headers and Hardening for Static Sites",{"path":1617,"title":1618},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc","Securing Deploy Credentials with GitHub OIDC",{"path":1620,"title":1621},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsubresource-integrity-for-third-party-assets","Subresource Integrity for Third-Party Assets",{"path":1623,"title":981},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fwriting-a-content-security-policy-for-a-static-site",{"path":1625,"title":1626},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3","Clean URLs and Trailing Slashes on S3",{"path":1628,"title":1629},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects","CloudFront Functions for Redirects",{"path":1631,"title":1632},"\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":1634,"title":1635},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites","Self-Hosting Static Sites on S3, Nginx and Caddy",{"path":1637,"title":1638},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy","Serving a Static Site with Caddy",{"path":1640,"title":1641},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-nginx","Serving a Static Site with Nginx",{"path":1643,"title":1644},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fzero-downtime-deploys-with-symlink-swaps","Zero-Downtime Deploys with Symlink Swaps",{"path":1646,"title":1647},"\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":1649,"title":1650},"\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":1652,"title":1653},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites","Serverless Functions for Static Sites",{"path":1655,"title":1656},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnetlify-functions-vs-cloudflare-workers","Netlify Functions vs Cloudflare Workers",{"path":1658,"title":1659},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication","Protecting a Static Site Behind Authentication",{"path":1661,"title":1063},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fproxying-third-party-apis-from-an-edge-function",1789722847245]