diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 67fae63..45c2d6c 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -1,5 +1,5 @@ - + {# OG image resolution handled by og-fix transform in eleventy.config.js to bypass Eleventy 3.x parallel rendering race condition (#3183). @@ -57,7 +57,7 @@ {# Critical CSS — inlined for fast first paint #} {# Defer full stylesheet — loads after first paint #} - + @@ -89,6 +89,9 @@ [x-data] > .flex.border-b { display: none !important; } /* Hide loading spinners and JS-only buttons */ [x-show*="loading"], button[\\@click*="fetch"], button[\\@click*="loadMore"] { display: none !important; } + /* Show content and hide skeleton for no-JS (stylesheet loads synchronously via noscript link) */ + .page-skeleton { display: none !important; } + html.loading main.container > .page-content { display: block !important; } @@ -277,6 +280,23 @@
+ {# Skeleton loader — shown until Tailwind stylesheet loads #} + + +
{% if withSidebar and page.url == "/" and homepageConfig and homepageConfig.sections %} {# Homepage: builder controls its own layout and sidebar #} {{ content | safe }} @@ -301,6 +321,7 @@ {% else %} {{ content | safe }} {% endif %} +