Skip to content

Commit 3542364

Browse files
committed
Add styles to Fonts Preload script
1 parent 6c7b40a commit 3542364

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pages/Loading/Fonts-Preloaded-Loaded-and-used-above-the-fold.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const linkElements = document.querySelectorAll(`link[rel="preload"]`);
99
const arrayLinks = Array.from(linkElements);
1010
const preloadedFonts = arrayLinks.filter((link) => link.as === "font");
1111

12-
console.log("Fonts Preloaded via Resources Hints");
12+
console.log("%cFonts Preloaded via Resources Hints", "font-weight: bold; font-size: 1.2em");
1313
preloadedFonts.forEach((font) => console.log(`${font.href}`));
1414
console.log("");
1515

@@ -22,7 +22,7 @@ const loadedFonts = [
2222
),
2323
];
2424

25-
console.log("Fonts and Weights Loaded in the Document");
25+
console.log("%cFonts and Weights Loaded in the Document", "font-weight: bold; font-size: 1.2em");
2626
loadedFonts.forEach((font) => console.log(`${font}`));
2727
console.log("");
2828

@@ -52,7 +52,7 @@ const usedFonts = Array.from(
5252
)
5353
);
5454

55-
console.log("Fonts and Weights Used Above the Fold");
55+
console.log("%cFonts and Weights Used Above the Fold", "font-weight: bold; font-size: 1.2em");
5656
usedFonts.forEach((font) => console.log(`${font}`));
5757
```
5858

0 commit comments

Comments
 (0)