Skip to content
Back to skills

Perf Prove It Dom

ASecurity

Optimize browser UI performance with Blink's evidence instead of profiles.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
developmentjavascriptrustjavanodegitsecurityperformance

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add Priyansh4444/perf-prove-it --skill perf-prove-it-dom --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Perf Prove It Dom?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Perf Prove It Dom
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/priyansh4444-perf-prove-it-dom/badge)](https://www.skillsdirectory.com/skills/priyansh4444-perf-prove-it-dom)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: perf-prove-it-dom
description: "Optimize browser UI performance with Blink's evidence instead of profiles."
license: Apache-2.0
---

# Perf prove it: the browser DOM and Blink

The browser is a pipeline, not a function call. A UI unit costs node mutations, style invalidations, layout work, painted pixels, and composited layers. Count the work the interaction must do, then remove it from the stage that actually pays.

Never guess which stage is slow from the code alone. A trace says it. The trace is the compiler output of the browser, the same way bytecode is the compiler output of V8.

Profiles choose the unit. They are for discovery, never for the target. The floor comes from counting what the interaction requires, then you do not stop until the gap is closed or explained.

Prioritize by poor field Core Web Vitals (LCP, INP, CLS at p75); a trace finds the cause. Keep field and lab evidence separate.

## Route

Read only the matching reference.

- Pipeline stages, what triggers each, and the Blink source map: `references/pipeline.md`.
- CDP harness, metrics, traces, long tasks and INP, allocation rate, deterministic counters, frame budget, layout-instability mapping, forced-reflow detection, verification protocol: `references/measurement.md`.
- Before/after patterns with measured effects and traps: `references/patterns.md`.
- User-facing outcome metrics, field versus lab, and the INP/CLS levers: `references/web-vitals.md`.
- Worked cases from real studies, with counters and machine reads: `examples/`.

## Loop

1. Pick one interaction (a keypress, scroll, route render, list update) and record it with the DevTools Performance panel or CDP tracing.
2. Derive the floor in counts: nodes, geometry reads, invalidated elements, layout scope, paint area, retention, and what must keep identity.
3. Build the harness: a real browser, a deterministic page, one page per arm, a discarded warmup, and the recorded Chromium version.
4. Measure counters and traces. Pair pass counts with their scope args (`dirtyObjects`, `totalObjects`) and durations; a pass count can rise while the work per pass falls.
5. Close the gap by the stage that pays. Make one change and re-measure; containment and virtualization defer work, so also measure the first scroll that reveals it.
6. Prove behavior, metric, cycle, trace, and memory parity, then report the trade and the revert.

For relevant checks, collect before/after evidence and explain skips:

- Check microtask starvation; `await Promise.resolve()` does not yield to a new task. Verify that task yielding lets rendering and input progress.
- Use `performance.mark()` and `performance.measure()` to label work; synchronous render timing excludes deferred commits and paint.
- Collect resource and navigation timings with `PerformanceObserver`; compare equivalent load/cache conditions before and after.
- Use DevTools Paint flashing and Layout shift regions to locate visual work; confirm with traces, since layout shifts do not count reflows.

## Read the implementation when the pipeline surprises you

The source is public. When a cost does not match the docs, read Blink itself. These paths are inside the Chromium tree, not files in this skill.

- `source.chromium.org` and `github.com/chromium/chromium` are the same tree. Start at `third_party/blink/renderer/core/README.md`, which maps the four core stages.
- `core/dom/` is the DOM tree, `core/css/` the style engine, `core/layout/` layout, `core/paint/` paint and property trees. `cc/` is the compositor; `core/paint/README.md` describes the commit handoff to `cc::Layer`.
- Find a behavior by symbol first, then read the class and its header comments; Blink headers carry the design notes. Read the commit that changed the file for the rationale and the linked design doc.
- If a trace event name confuses you, search it in the tree. The emitter is usually one `TRACE_EVENT` macro away from the code that decides the behavior.
- Prefer reading source over memorizing flags, because flags change.

Quoting the implementation in the report is the equivalent of pasting bytecode: it turns an opinion about CSS into a fact about Blink. The full stage-and-source map lives in `references/pipeline.md`.

## Evidence provenance gate

Never call a reduced page, hand-written DOM snippet, or equivalent harness the application's render output. Label it **model probe**. For JSX/TSX or templated HTML, record the source commit, real build command and versions, emitted JS/chunk path and hash, browser version, and trace command. Inspect the emitted JavaScript before attributing work to a component. A model probe can form a hypothesis; only the shipped artifact plus a browser trace can prove render, DOM, layout, paint, or allocation claims.

## Hard gates

- No UI performance claim from wall clock alone. Counters and trace events are the verdict.
- No field claim from a single trace or `PerformanceObserver`. That is a lab observation; field impact stays pending until aggregated user data exists.
- No arm comparison from the same page. Separate pages, same state, discarded warmup.
- No parity snapshot taken without advancing two `requestAnimationFrame` ticks.
- No behavior change hidden in a render change. Same-node fixes keep the DOM shape; node-reduction fixes are parity on rendered text, ARIA semantics, scroll and event behavior, and pixels with a measured diff.
- No `innerHTML` on untrusted input.
- No promoted-layer or `will-change` advice without counting layers and memory.
- No "faster" verdict without the before and after trace pasted in.
- No CI gate from a duration or a single trace. Gate on a count that repeats, and prove it tracks the field metric first (`perf-prove-it-ts`, `references/ratchets.md`).
- No readability cost hidden. Name the added JS or CSS complexity next to the counters and let the user decide.

## Report

1. The floor target line, the interaction, and the counter deltas for both arms with the Chromium version.
2. Trace evidence: event counts and durations pasted, before and after.
3. Behavior proof: the parity contract for the fix class, with a screenshot or a11y comparison, same events, same DOM shape.
4. The trade: DOM size, layer count or memory, accessibility impact, security, and the revert.
5. One machine read: paste the trace event or counter, one plain sentence for what Blink did, and what it bought this interaction.
6. Remaining spikes and what would reopen them.

## References

- `references/pipeline.md`: the stages, triggers, cost classes, and the Blink source map.
- `references/measurement.md`: CDP commands, trace workflow, metric keys, forced reflow detection, harness rules.
- `references/patterns.md`: before and after DOM patterns with measured effects and traps.
- `references/web-vitals.md`: Core Web Vitals thresholds, field/lab discipline, and the INP/CLS levers.
- `examples/`: three worked cases with floors, counters, machine reads, and the traps they taught.

Files in this skill

  • SKILL.md6.8 KB
  • examples/README.md556 B
  • examples/render-chat-emotes.md1.1 KB
  • examples/reply-tree.md1.1 KB
  • examples/transcript-expansion.md1.1 KB
  • references/measurement.md16.9 KB
  • references/patterns.md10.5 KB
  • references/pipeline.md5.3 KB
  • references/web-vitals.md4.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.