Frontend performance testing

From rogie/figui3 · View interactive version

Frontend performance testing is an AI agent skill from the GitHub repository rogie/figui3. Guides browser-based performance testing for HTML, CSS, JavaScript, and UI interactions. Use when measuring frontend performance, adding Playwright perf tests, checking regressions, profiling load/render/interaction cost, or discussing performance budgets.

How to use this skill

Skill file

Frontend Performance Testing

Use real browsers for performance checks. In this repo, prefer Playwright because playwright.config.ts already boots bun server.ts and runs against Chromium.

What To Measure

Test Pattern

  1. Mount the smallest deterministic fixture that reproduces the performance risk.
  2. Warm up once before measuring.
  3. Use browser APIs inside page.evaluate: performance.now(), PerformanceObserver, requestAnimationFrame, getBoundingClientRect, and document.fonts.ready when relevant.
  4. Repeat enough times to reduce noise; assert on median or bounded worst case, not one sample.
  5. Keep budgets local and named after the scenario, not global magic numbers.

Playwright Guidance

Budget Rules

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.