Skip to content

perf(frontend): optimize LCP via GitHub API preconnects and purge Tailwind CSS#142

Merged
PythonWoods-Dev merged 4 commits into
mainfrom
dev/zen-v020-frontend-phase-5-performance
Jul 2, 2026
Merged

perf(frontend): optimize LCP via GitHub API preconnects and purge Tailwind CSS#142
PythonWoods-Dev merged 4 commits into
mainfrom
dev/zen-v020-frontend-phase-5-performance

Conversation

@PythonWoods-Dev

Copy link
Copy Markdown
Contributor

Overview

This Pull Request delivers the final frontend performance optimizations (Phase 5) to achieve maximum Lighthouse scores for zenzic.dev.

Performance Improvements

  • LCP Optimization (Preconnects): Injected <link rel="preconnect"> and <link rel="dns-prefetch"> for api.github.com into the MkDocs main.html override. This eliminates DNS/TLS handshake latency for client-side widgets, accelerating the Largest Contentful Paint (LCP).
  • CSS Payload Reduction: Rebuilt the Tailwind CSS toolchain (tailwind.config.js) to strictly purge unused utility classes across docs/**/*.md and overrides/**/*.html. The custom CSS payload has been minimized to ~21 KiB.

Compliance

  • REUSE 3.3: Applied SPDX license headers (Apache-2.0) to all newly generated Tailwind configuration and CSS files.

Quality Gate: just verify passed. DQS 100/100.

@PythonWoods-Dev PythonWoods-Dev force-pushed the dev/zen-v020-frontend-phase-5-performance branch 2 times, most recently from 47c8fd0 to 66c8515 Compare July 2, 2026 10:52
…lwind CSS

Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
…ssibility improvements

Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
@PythonWoods-Dev PythonWoods-Dev force-pushed the dev/zen-v020-frontend-phase-5-performance branch from d8155e1 to dc7e6f0 Compare July 2, 2026 10:56
@PythonWoods-Dev PythonWoods-Dev merged commit e88cdbd into main Jul 2, 2026
7 checks passed
@PythonWoods-Dev PythonWoods-Dev deleted the dev/zen-v020-frontend-phase-5-performance branch July 2, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant