Skip to content

Instantly share code, notes, and snippets.

@jackbarham
Last active October 6, 2024 09:56
Show Gist options
  • Select an option

  • Save jackbarham/8f76407294aebc78e62b3bb155bd476c to your computer and use it in GitHub Desktop.

Select an option

Save jackbarham/8f76407294aebc78e62b3bb155bd476c to your computer and use it in GitHub Desktop.

Revisions

  1. jackbarham revised this gist Oct 6, 2024. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions nuxt.config.ts
    Original file line number Diff line number Diff line change
    @@ -22,13 +22,13 @@ export default defineNuxtConfig({
    // Preload the Adobe Typekit CSS to avoid render-blocking
    {
    rel: 'preload',
    href: 'https://use.typekit.net/ztp5pvp.css',
    href: 'https://use.typekit.net/abababab.css',
    as: 'style',
    },
    // Load the Adobe Typekit CSS asynchronously to avoid render-blocking
    {
    rel: 'stylesheet',
    href: 'https://use.typekit.net/ztp5pvp.css',
    href: 'https://use.typekit.net/abababab.css',
    onload: 'this.rel="stylesheet"',
    media: 'print',
    },
    @@ -44,7 +44,7 @@ export default defineNuxtConfig({
    ],
    script: [
    {
    src: 'https://use.typekit.net/ztp5pvp.js',
    src: 'https://use.typekit.net/abababab.js',
    async: true,
    defer: true,
    },
  2. jackbarham renamed this gist Oct 6, 2024. 1 changed file with 0 additions and 0 deletions.
  3. jackbarham renamed this gist Oct 6, 2024. 1 changed file with 0 additions and 0 deletions.
  4. jackbarham created this gist Oct 6, 2024.
    58 changes: 58 additions & 0 deletions nuxt.config.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,58 @@
    export default defineNuxtConfig({
    compatibilityDate: '0000-00-00',
    devtools: {
    enabled: true
    },
    modules: [
    //
    ],
    app: {
    head: {
    htmlAttrs: {
    lang: 'en',
    },
    title: 'Website title',
    meta: [
    {
    name: 'description',
    content: 'Website description'
    }
    ],
    link: [
    // Preload the Adobe Typekit CSS to avoid render-blocking
    {
    rel: 'preload',
    href: 'https://use.typekit.net/ztp5pvp.css',
    as: 'style',
    },
    // Load the Adobe Typekit CSS asynchronously to avoid render-blocking
    {
    rel: 'stylesheet',
    href: 'https://use.typekit.net/ztp5pvp.css',
    onload: 'this.rel="stylesheet"',
    media: 'print',
    },
    {
    rel: 'preconnect',
    href: 'https://use.typekit.net',
    },
    {
    rel: 'preconnect',
    href: 'https://p.typekit.net',
    crossorigin: 'anonymous',
    },
    ],
    script: [
    {
    src: 'https://use.typekit.net/ztp5pvp.js',
    async: true,
    defer: true,
    },
    {
    innerHTML: 'try{Typekit.load({ async: true });}catch(e){}',
    type: 'text/javascript',
    },
    ],
    }
    }
    })