From c71a7f38a80656d4821e0f14dafff50ce2ffa362 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sat, 7 Mar 2026 15:46:43 +0100 Subject: [PATCH] fix: prevent FOUC for images and SVG icons on first paint Add critical CSS rules to constrain images (max-width:100%) and inline SVGs (default 1.25rem) before Tailwind loads. Add width/height HTML attributes to avatar images in hero sections and h-card sidebar widget. Confab-Link: http://localhost:8080/sessions/edb1b7b0-da66-4486-bd9c-d1cfa7553b88 --- _includes/components/h-card.njk | 2 ++ _includes/components/sections/hero.njk | 2 ++ _includes/layouts/home.njk | 12 +++++++----- css/critical.css | 4 ++++ 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/_includes/components/h-card.njk b/_includes/components/h-card.njk index 8e1dc83..2d39416 100644 --- a/_includes/components/h-card.njk +++ b/_includes/components/h-card.njk @@ -29,6 +29,8 @@ {{ authorName }} diff --git a/_includes/layouts/home.njk b/_includes/layouts/home.njk index 0f26556..0932dbb 100644 --- a/_includes/layouts/home.njk +++ b/_includes/layouts/home.njk @@ -15,6 +15,8 @@ withSidebar: true {{ site.author.name }} @@ -79,7 +81,7 @@ withSidebar: true

Recent Posts

{% for post in collections.posts | head(10) %} -
@@ -110,7 +112,7 @@ withSidebar: true

Explore