Skip to content

Commit

Permalink
perf: server head & LCP speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Jun 1, 2024
1 parent 58583ca commit 13ceefa
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import '~/assets/fonts/HenriettaCondensed.css'
const appState = useAppState()
const appContainer = useAppContainer()
useHead({
useServerHead({
htmlAttrs: {
class: 'min-w-[320px] bg-primary-700',
lang: 'de',
Expand Down
2 changes: 1 addition & 1 deletion components/Kirby/Block/SectionBackers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defineProps<{
>
<div class="mb-2 flex justify-center">
<img
v-if="item.logo"
v-if="item.logo?.url"
class="h-10 object-contain"
:width="item.logo.width"
:height="item.logo.height"
Expand Down
8 changes: 7 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { siteQuery } from './queries'

export default defineNuxtConfig({
modules: ['@nuxtjs/plausible', '@unocss/nuxt', '@vueuse/nuxt', 'nuxt-kql'],
modules: [
'@nuxtjs/plausible',
'@unocss/nuxt',
'@vueuse/nuxt',
'nuxt-lcp-speedup',
'nuxt-kql',
],

runtimeConfig: {
public: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"lint-staged": "^15.2.4",
"nuxt": "^3.11.2",
"nuxt-kql": "^1.4.17",
"nuxt-lcp-speedup": "^0.8.1",
"prettier": "^3.2.5",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.4.5",
Expand Down
15 changes: 15 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 13ceefa

Please sign in to comment.