Preload is enabled for a font that is missing a specified subset.
- On a font per font basis by adding it to the function call
const inter = Inter({ subsets: ['latin'] })
- Globally for all your fonts
// next.config.js
module.exports = {
experimental: {
fontLoaders: [
{ loader: '@next/font/google', options: { subsets: ['latin'] } },
],
},
}
If both are configured, the subset in the function call is used.
If it's not possible to preload your intended subset you can disable preloading.
const notoSansJapanese = Noto_Sans_JP({
weight: '400',
preload: false,
})