Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when reviewing scripts, client components, bundles, or runtime behavior related to Debounce and throttle event handlers. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.
.claude/skills/thedaviddias-debounce-throttle/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -9% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -27% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -22% | 0% |
High-frequency events fire hundreds of times per second, causing UI jank, excessive API calls, and poor Interaction to Next Paint (INP) scores.
Review this JavaScript code for scroll, resize, input, mousemove, or other high-frequency event handlers that should use debounce or throttle.
Add debounce or throttle to high-frequency event handlers to limit execution rate and improve performance.
Explain the difference between debounce and throttle, and when to use each pattern for optimal performance.
Review scripts, client components, and browser execution paths related to Debounce and throttle event handlers. Flag exact imports, event handlers, runtime side effects, or blocking operations that violate the rule, and state how the change should be verified in the browser.
For full implementation details, code examples, and framework-specific guidance, see references/rule.md.
Rule page: https://frontendchecklist.io/en/rules/javascript/debounce-throttle
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 16,154 | 14,057 | -13% | 1 | 1 | 0% | 3,196 | 3,517 | +10% | 0 | 0 | — |
case-08 | fail→pass | 9,183 | 7,398 | -19% | 1 | 1 | 0% | 1,805 | 1,672 | -7% | 0 | 0 | — |
case-02 | fail→pass | 11,698 | 11,575 | -1% | 1 | 1 | 0% | 2,591 | 2,698 | +4% | 0 | 0 | — |
case-03 | pass→pass | 11,426 | 8,244 | -28% | 1 | 1 | 0% | 2,208 | 1,914 | -13% | 0 | 0 | — |
case-04 | pass→pass | 13,529 | 10,436 | -23% | 1 | 1 | 0% | 2,206 | 2,331 | +6% | 0 | 0 | — |
case-05 | fail→fail | 15,137 | 11,323 | -25% | 1 | 1 | 0% | 2,884 | 2,259 | -22% | 0 | 0 | — |
case-06 | fail→fail | 9,949 | 13,344 | +34% | 1 | 1 | 0% | 1,833 | 2,522 | +38% | 0 | 0 | — |
case-07 | fail→fail | 8,594 | 8,222 | -4% | 1 | 1 | 0% | 1,957 | 2,092 | +7% | 0 | 0 | — |
case-09 | pass→pass | 13,506 | 16,263 | +20% | 1 | 1 | 0% | 2,333 | 3,422 | +47% | 0 | 0 | — |
case-10 | fail→pass | 14,408 | 12,158 | -16% | 1 | 1 | 0% | 2,980 | 2,713 | -9% | 0 | 0 | — |
case-11 | pass→pass | 6,851 | 6,554 | -4% | 1 | 1 | 0% | 1,451 | 1,555 | +7% | 0 | 0 | — |
case-12 | fail→fail | 13,331 | 11,023 | -17% | 1 | 1 | 0% | 2,621 | 2,394 | -9% | 0 | 0 | — |
case-13 | pass→pass | 9,161 | 10,443 | +14% | 1 | 1 | 0% | 1,868 | 2,531 | +35% | 0 | 0 | — |
case-14 | fail→pass | 14,130 | 8,266 | -42% | 1 | 1 | 0% | 2,591 | 1,886 | -27% | 0 | 0 | — |
case-15 | pass→pass | 9,386 | 8,498 | -9% | 1 | 1 | 0% | 1,917 | 2,033 | +6% | 0 | 0 | — |
case-16 | fail→fail | 14,879 | 10,297 | -31% | 1 | 1 | 0% | 2,733 | 2,352 | -14% | 0 | 0 | — |
case-17 | fail→pass | 12,087 | 7,530 | -38% | 1 | 1 | 0% | 2,078 | 1,623 | -22% | 0 | 0 | — |
case-18 | fail→pass | 11,979 | 10,809 | -10% | 1 | 1 | 0% | 2,436 | 2,476 | +2% | 0 | 0 | — |
case-19 | pass→pass | 15,681 | 12,677 | -19% | 1 | 1 | 0% | 2,455 | 2,619 | +7% | 0 | 0 | — |
case-20 | pass→fail | 12,294 | 14,114 | +15% | 1 | 1 | 0% | 2,352 | 2,713 | +15% | 0 | 0 | — |
case-21 | pass→fail | 9,321 | 10,323 | +11% | 1 | 1 | 0% | 1,819 | 2,179 | +20% | 0 | 0 | — |
case-22 | pass→pass | 6,569 | 7,637 | +16% | 1 | 1 | 0% | 1,200 | 1,663 | +39% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +18 percentage points is the difference between those two pass rates over the 22 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.