Skip to content
Discussion options

You must be logged in to vote

I had similar problem with fonts:

preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly

I just removed unused font declarations.

Before:

import { Inter, Roboto, Sora } from 'next/font/google'

export const inter = Inter({
subsets: ['latin'],
display: 'swap',
variable: '--font-inter'
})

export const roboto = Roboto({
subsets: ['latin'],
display: 'swap',
variable: '--font-roboto',
weight: '500'
})

export const sora = Sora({
subsets: ['latin'],
display: 'swap',
variable: '--font-sora'
})

and after (I use only Inter font in my NextJS project):

import { Inter } from 'next/font/google'

export const inter = Inter({
subsets

Replies: 7 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@kolserdav
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@SalahAdDin
Comment options

@blazejmojak
Comment options

@SalahAdDin
Comment options

Answer selected by kolserdav
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@icyJoseph
Comment options

@thany
Comment options

@icyJoseph
Comment options

@thany
Comment options

@icyJoseph
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
10 participants