frontend-performance
Improve perceived load time, interaction responsiveness, visual stability or client payload size. Use when profiling or a user-facing performance budget points to client loading, rendering or interaction.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- frontend-performance
- description
- Improve perceived load time, interaction responsiveness, visual stability or client payload size. Use when profiling or a user-facing performance budget points to client loading, rendering or interaction.
03 SKILL.md 正文
<!-- Generated by Paved plugin paved@2.29.0 from core.performance.frontend-performance@0.1.2; edit Paved Core instead. -->
Frontend performance
When to use
In the planning and implementation phases of a performance run, once profiling has located
the problem on the client side: loading, rendering or responding to input.
Required context
The baseline measurement and profile from profiling. Useful: the technology context
and adapter knowledge for how the client is built and delivered.
Preconditions
- A baseline measured under realistic conditions: a representative device class and network, a cold and a warm load, not only a fast development machine.
- The metric reflects what users perceive, not only total load time.
Procedure
- Name the user-facing metric that misses its target: time until the main content is visible, time until the page responds to input, delay between input and visible response, unexpected layout movement.
- Split the time along the path to that moment: waiting for the server, downloading resources, executing client code, rendering. Fix the largest part first.
- Look for the usual causes:
- resources the first view does not need, loaded before it (code, images, fonts);
- large resources that could be compressed, resized or split;
- requests made one after another that could run in parallel or be combined;
- long tasks on the main thread that block input;
- repeated rendering of content that did not change;
- space not reserved for content that arrives late, so the layout shifts.
- Fix one cause, then measure again with
profiling, under the same device and network conditions. - Check the other metrics: deferring a resource can improve one metric and hurt another.
Tools
None. Measurement tools come from profiling, adapters or the project.
Rules
None beyond those that apply by scope.
Verification
Required: performance. Recommended: e2e, to show the flows still work after loading
order changed.
Evidence
Baseline and result measurements with device class, network conditions and cache state.
Completion criteria
- The user-facing metric meets its target under the conditions of the baseline.
- No other tracked metric got worse beyond its variance.
Failure modes
| Failure | Signal | Response |
|---|---|---|
| Fast machine only | Gains vanish on the representative device | Re-measure under realistic conditions |
| Metric traded | One metric improves, another regresses | Balance, or report the trade-off to a human |
| Broken flow | Deferred code is missing when a user needs it | Restore the order; test the flow |
| Warm cache only | Improvement exists only on repeat visits | Measure cold loads too |
References
None.
Paved integration
Use the project-local Paved contract as the source of truth. Discover state with node "<plugin root>/scripts/paved.mjs" status --json, load only relevant .paved/project/ context, and invoke verification with node "<plugin root>/scripts/paved.mjs" verify --json. <plugin root> is the installed Paved plugin directory, two directories above this SKILL.md. Always run the launcher from the repository being worked on, never from the plugin directory. Do not edit generated integration files or bypass Paved lifecycle and ownership checks.
04 同仓库更多 Skills
sample-skill
Does a sample task. Use when a sample is needed.
unexplained-contract
Does a sample task. Use when a sample is needed.
shell-block
Does a sample task. Use when a sample is needed.
project-identifier
Does a sample task. Use when a sample is needed.
oversized
Does a sample task. Use when a sample is needed.
no-activation
Does a sample task.