Skip to content

perf: optimize homepage lighthouse scores#601

Open
Photon101 wants to merge 1 commit into
tailcallhq:developfrom
Photon101:photon101/lighthouse-home-100
Open

perf: optimize homepage lighthouse scores#601
Photon101 wants to merge 1 commit into
tailcallhq:developfrom
Photon101:photon101/lighthouse-home-100

Conversation

@Photon101
Copy link
Copy Markdown

/claim #217

Summary

  • Adds a homepage-only post-build optimizer that inlines a compact route CSS bundle, removes initial Docusaurus hydration scripts from /, and defers the full app bundle until search interaction.
  • Replaces the eager Vimeo iframe with an accessible click-to-play facade and lazy thumbnail loading.
  • Adds AVIF hero assets, compresses the decorative map image, and defers below-the-fold decorative/background loading.
  • Fixes homepage accessibility/SEO issues found during Lighthouse validation: heading hierarchy, link contrast/text, decorative animation hiding, cookie close alt text, and social link labels.

Lighthouse result

Release build served locally with npm run serve -- --port 3017 --host 127.0.0.1:

  • Performance: 100
  • Accessibility: 100
  • Best Practices: 100
  • SEO: 100
  • FCP: 1.3 s
  • LCP: 1.7 s
  • TBT: 0 ms
  • CLS: 0
  • Total transfer: 147 KiB

PWA was intentionally ignored per the issue.

Demo video: https://raw.githubusercontent.com/Photon101/tailcallhq.github.io/tailcall-demo-assets/demo/tailcall-home-lighthouse-demo.mp4

Validation

  • npm run build passes. Docusaurus still emits pre-existing warnings for optional ws packages and /docs/ HTML minifier diagnostics.
  • Mobile Lighthouse release run passes at 100/100/100/100.
  • Playwright smoke passes for mobile hero/nav/video and desktop hero/search.
  • Targeted Prettier check passes for changed source files.
  • npm run typecheck still fails on pre-existing generated GraphQL, GraphiQL, DocSearch, and Algolia typing issues outside this patch.

@Photon101 Photon101 changed the title Optimize homepage Lighthouse scores perf: optimize homepage lighthouse scores May 13, 2026
@Photon101
Copy link
Copy Markdown
Author

Friendly ping — all checks pass, mergeable. Happy to address any feedback.

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