Css render performance

From rogie/figui3 · View interactive version

Css render performance is an AI agent skill from the GitHub repository rogie/figui3. Guides CSS rendering and layout performance tests for component UIs. Use when checking selector cost, layout thrash, paint work, animation smoothness, CSS containment, computed styles, or visual regressions caused by CSS changes.

How to use this skill

Skill file

CSS Render Performance

Test CSS performance in a browser with real stylesheets loaded. Pair this with css-component-testing when the risk is both correctness and render cost.

Performance Risks

Measurement Pattern

  1. Mount a scaled fixture: enough nodes to expose the cost, but still deterministic.
  2. Wait for styles, custom elements, and fonts to settle.
  3. Measure a single operation: class toggle, attribute change, theme switch, popup open, resize, or list update.
  4. Read layout at controlled points using getBoundingClientRect or computed styles.
  5. Use requestAnimationFrame to separate write, style/layout flush, and visual completion.

Useful Browser APIs

CSS 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.