Skip to content

perf(home): serialize only visible demos - #567

Merged
harlan-zw merged 1 commit into
mainfrom
fix/home-demo-payload
Oct 8, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
fix/home-demo-payload

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

The homepage serialized every demo, although its two sections display at most nine. Select six teaser demos and three comparison previews before Nuxt serialization, while preserving the full count.

For the 42-demo response, projected JSON falls from 72,458 to 17,046 bytes. The comparison keeps its preferred group and fallback order.

Homepage demo data: the full API response becomes selected records and a total before serialization.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

@harlan-zw

Copy link
Copy Markdown
Collaborator Author

🤖 Harlan Agent Kit verification of head 63e168479a2721decfdcab26b8e2aad96d73f229.

Using the live 42-demo response, the projection produces 17,046 JSON bytes from 72,458 bytes.
The local page matched production's six demo prompts, three comparison links, and “All 42 demos”.
At desktop and 390px mobile widths, demo selection worked. Copy-run produced npx skilld run heygen-com/hyperframes/hyperframes.
The mobile page had no horizontal overflow.

The local Nuxt payload measured 51,049 bytes. This is not a production reduction measurement: other local feeds differ.

@harlan-zw harlan-zw added the harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. label Oct 8, 2026
@harlan-github-agent harlan-github-agent Bot added harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. and removed harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. labels Oct 8, 2026
@harlan-zw
harlan-zw merged commit a3093da into main Oct 8, 2026
7 checks passed
@harlan-zw
harlan-zw deleted the fix/home-demo-payload branch October 8, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant