mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-23 06:15:59 -04:00
refactor font preloading
This commit is contained in:
@@ -15,14 +15,15 @@ export const name = {
|
||||
regular: "Inter",
|
||||
variable: "Inter var",
|
||||
};
|
||||
// re-export hashed URL(s) of the most prominent file so we can preload it in head:
|
||||
export const preloadFonts = [
|
||||
|
||||
// re-export hashed URL(s) of the most prominent files so we can preload them in `<head>` (see pages/_document.tsx):
|
||||
export const preloads = [
|
||||
{
|
||||
key: "inter-var",
|
||||
src: interLatinVarFullNormalWoff2,
|
||||
href: interLatinVarFullNormalWoff2,
|
||||
type: "font/woff2",
|
||||
},
|
||||
];
|
||||
|
||||
export const family: AtRule.FontFace[] = [
|
||||
{
|
||||
fontFamily: name.regular,
|
||||
|
||||
Reference in New Issue
Block a user