You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a544104
Browse filesBrowse the repository at this point in the historyBrowse files
perf: defer non-critical CSS and extend cache headers
Targets the render-blocking and cache-lifetime Unlighthouse findings:
- baseof.html: Font Awesome, Prism, alerts, code-copy, and Algolia
stylesheets now load via the print-media swap (media=print +
onload) instead of blocking first paint. Only the critical
fingerprinted Tailwind bundle remains render-blocking. A <noscript>
block preserves the blocking links when JS is disabled.
- netlify.toml: add Cache-Control for fonts (immutable 1y, they are
content-hashed) and images (30d, not fingerprinted).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
{{ with .Site.Params.algolia }}<linkrel="stylesheet" href="https://cdn.jsdelivr.net/npm/@algolia/algoliasearch-netlify-frontend@1/dist/algoliasearchNetlify.css" />{{ end }}
92
+
93
+
<!-- Non-critical CSS — loaded async via the print-media swap so it doesn't block first paint -->
0 commit comments