diff --git a/website/astro.config.mjs b/website/astro.config.mjs index 33348a5..b2bbb13 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -17,7 +17,19 @@ export default defineConfig({ lastmod: new Date(), filter: (page) => !page.includes("/blog"), }), - inline(), + inline({ + // @playform/inline wraps the `beasties` library, so the config + // key is "Beasties" (not "Critters"). An unrecognized key is + // silently ignored — which is how the initial fix missed its + // target and docs pages kept rendering unstyled with the + // default "media" preload strategy. + Beasties: { + // "swap" converts deferred links to preloads that swap to + // rel="stylesheet" once loaded, while still inlining critical + // CSS so the page renders styled on first paint. + preload: "swap", + }, + }), ], markdown: { shikiConfig: {