File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const linkElements = document.querySelectorAll(`link[rel="preload"]`);
99const arrayLinks = Array .from (linkElements);
1010const 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 " );
1313preloadedFonts .forEach ((font ) => console .log (` ▸ ${ font .href } ` ));
1414console .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 " );
2626loadedFonts .forEach ((font ) => console .log (` ▸ ${ font} ` ));
2727console .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 " );
5656usedFonts .forEach ((font ) => console .log (` ▸ ${ font} ` ));
5757```
5858
You can’t perform that action at this time.
0 commit comments