Js runtime performance

From rogie/figui3 · View interactive version

Js runtime performance is an AI agent skill from the GitHub repository rogie/figui3. Guides JavaScript runtime performance testing for frontend components. Use when profiling event handlers, DOM update loops, memory leaks, timers, animation frames, pointer/keyboard interactions, or regressions in vanilla JS component code.

How to use this skill

Skill file

JS Runtime Performance

Measure JavaScript cost through real user-facing paths. For FigUI3, that usually means interactions on fig-* elements in Playwright, not isolated functions.

What To Check

Test Pattern

  1. Reproduce the user path with real DOM and real events.
  2. Warm up once, then measure repeated runs.
  3. Collect timings with performance.now() around the smallest meaningful operation.
  4. For leak risks, mount/unmount repeatedly and count retained DOM/listeners through observable public effects.
  5. Assert behavior first, then assert timing or bounded operation counts.

Instrumentation Ideas

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.