Skip to content

Commit

Permalink
Inline CSS for faster first page loads.
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Sep 2, 2024
1 parent 401a004 commit cd7a8db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const config = {
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter(),
// allow up to 150kb of style to be inlined with the HTML
// Faster FCP (First Contentful Paint) by reducing the number of requests
inlineStyleThreshold: 150000,
},
preprocess: vitePreprocess(),
}
Expand Down

0 comments on commit cd7a8db

Please sign in to comment.