Web component performance

From rogie/figui3 · View interactive version

Web component performance is an AI agent skill from the GitHub repository rogie/figui3. Guides performance testing for native Web Components and custom elements. Use when measuring custom element registration, upgrade cost, connected/disconnected callbacks, attributeChangedCallback churn, Shadow DOM work, slots, or fig-* component scalability.

How to use this skill

Skill file

Web Component Performance

Measure custom element performance in real browsers. Pair this with web-component-testing when validating both behavior contracts and performance regressions.

Hot Paths

Test Pattern

  1. Create a scaled fixture with representative fig-* markup.
  2. Wait for definitions, then separate upgrade timing from interaction timing.
  3. Measure repeated mount/unmount cycles for cleanup and callback cost.
  4. Stress public APIs: attributes, properties, slots, and user interactions.
  5. Assert no page errors, no console errors, correct final state, and bounded timing.

Useful Checks

Fix Preferences

Avoid

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.