From a18721dae7da00f51150b6fe5305fadf3d376490 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Wed, 7 Oct 2026 03:13:58 +1100 Subject: [PATCH 1/2] perf(demos): paint the Skill page demo from its first screen The Skill page's largest paint was a lazy full-page screenshot, up to 6000 pixels tall. The recorder now keeps a first-screen poster for a taller page. The page loads it eagerly at high priority and fetches the whole page only when the window scrolls. --- layers/registry/app/components/_SkillDemo.vue | 43 +++------- .../app/components/_SkillDemoShot.vue | 80 +++++++++++++++++++ layers/registry/server/utils/skill-demos.ts | 12 +++ scripts/record-skill-demo.ts | 19 ++++- test/unit/skill-demos.test.ts | 17 ++++ 5 files changed, 137 insertions(+), 34 deletions(-) create mode 100644 layers/registry/app/components/_SkillDemoShot.vue diff --git a/layers/registry/app/components/_SkillDemo.vue b/layers/registry/app/components/_SkillDemo.vue index 4edab881..4e642f48 100644 --- a/layers/registry/app/components/_SkillDemo.vue +++ b/layers/registry/app/components/_SkillDemo.vue @@ -1,6 +1,7 @@