Skip to content

Commit b571973

Browse files
committed
Inline all stylesheets to remove render-blocking CSS request
Switches Astro's inlineStylesheets from 'auto' to 'always' so the shared CSS bundle (~16 KiB) is embedded directly in each page's HTML instead of loaded as a separate render-blocking <link>. Cuts the Lighthouse "render-blocking requests" warning down to fonts only and removes a critical-path network roundtrip on mobile.
1 parent 2b1409a commit b571973

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default defineConfig({
123123
output: 'static',
124124

125125
build: {
126-
inlineStylesheets: 'auto',
126+
inlineStylesheets: 'always',
127127
},
128128

129129
vite: {

0 commit comments

Comments
 (0)