From 5ce136d6d648d84e03de8419d85bd6daf74d7bc2 Mon Sep 17 00:00:00 2001 From: Joel Brock Date: Thu, 10 Sep 2026 14:56:55 -0700 Subject: [PATCH] Perf: load only the active template's CSS and fonts, fonts async PageSpeed flagged 470ms of render-blocking requests: all three template stylesheets plus a Google Fonts request carrying all six families loaded on every page view, though only one template is active per load (warp switches reload the page). The head script that resolves the template before paint now injects just that template's stylesheet (with blocking=render to avoid a theme flash) and a per-template font subset loaded off the critical path via the media=print onload swap. Only the base styles.css remains render-blocking. Claude-Session: https://claude.ai/code/session_011XPqEdbBpGpuD6PucEuU7E --- index.html | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 87db073..7d2c9b7 100644 --- a/index.html +++ b/index.html @@ -17,10 +17,6 @@ - - - - -