From 33b527c8f235ca4106ca349c6a57a99430055e79 Mon Sep 17 00:00:00 2001 From: satnaing Date: Tue, 19 Dec 2023 11:58:16 +0630 Subject: [PATCH] fix: eliminate render-blocking google font Eliminate render-blocking Google font by loading the font asynchronously. --- src/layouts/Layout.astro | 14 ++++++++++++++ tailwind.config.cjs | 6 +++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 5fa9c271c..836537d2b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -59,11 +59,25 @@ const socialImageURL = new URL( + + + { diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 8e4386095..40cb2414e 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -54,7 +54,11 @@ module.exports = { transparent: "transparent", }, fontFamily: { - mono: ["IBM Plex Mono", "monospace"], + mono: [ + "IBM Plex Mono", "ui-monospace", "SFMono-Regular", + "Menlo", "Monaco", "Consolas", "Liberation Mono", + "Courier New", "monospace" + ], }, typography: {