{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-debounce-throttle-cc01d27f9b9c","title":"Optimize High-Frequency Event Handlers with Debounce and Throttle","summary":"Apply debounce and throttle techniques to scroll, resize, and input events to reduce UI jank and improve performance by limiting execution rate.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-debounce-throttle-cc01d27f9b9c","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-debounce-throttle-cc01d27f9b9c","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-debounce-throttle-cc01d27f9b9c.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-debounce-throttle-cc01d27f9b9c\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure event listeners are cleaned up to prevent memory leaks. Choose a delay of 150-300ms for user input and 100ms for scroll\/resize events.","instructions":"---\nname: debounce-throttle\ndescription: \"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.\"\nmetadata:\n  category: javascript\n  priority: high\n  difficulty: intermediate\n  estimatedTime: \"15\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/javascript\/debounce-throttle\n---\n\n# Debounce and throttle event handlers\n\nHigh-frequency events fire hundreds of times per second, causing UI jank, excessive API calls, and poor Interaction to Next Paint (INP) scores.\n\n## Quick Reference\n\n- Debounce: delays execution until activity stops (search inputs, form validation)\n- Throttle: limits execution rate (scroll, resize handlers)\n- Use 150-300ms delay for user input, 100ms for scroll\/resize\n- Clean up event listeners to prevent memory leaks\n\n## Check\n\nReview this JavaScript code for scroll, resize, input, mousemove, or other high-frequency event handlers that should use debounce or throttle.\n\n## Fix\n\nAdd debounce or throttle to high-frequency event handlers to limit execution rate and improve performance.\n\n## Explain\n\nExplain the difference between debounce and throttle, and when to use each pattern for optimal performance.\n\n## Code Review\n\nReview 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/javascript\/debounce-throttle\n","use_cases":["Reduce excessive API calls during search input","Improve scroll performance by limiting handler execution","Enhance form validation with debounce for user input"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/debounce-throttle\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:49:43.000000Z","updated_at":"2026-11-23T04:54:56.000000Z","seo_title":"Optimize High-Frequency Events with Debounce and Throttle","seo_description":"Use debounce and throttle to reduce UI jank and improve performance for scroll, resize, and input events.","seo_keywords":["optimize event handlers","debounce throttle performance","reduce API calls","scroll performance optimization","form validation debounce"]}}