Note: This page demonstrates the improved EventService with throttling,
per-event configuration, and event coalescing. Open the console to see detailed logging.
1. Basic Throttling (100ms default)
Click rapidly - only fires once per 100ms window
0
Fired
0
Throttled
0%
Throttle Rate
2. Per-Event Configuration
Different events with different throttle delays
Configuration:
highFrequency: 16ms (60fps) - Good for scroll, mousemove
normal: 100ms (default) - General purpose
slow: 500ms - Less critical updates
critical: 0ms - Always fires immediately
3. Event Coalescing (Batch Processing)
Multiple rapid fires collected into a single batch
Coalescing Enabled: Handler receives an array of all items
collected during the coalescing window (50ms). This reduces handler calls and enables batch processing.
0
Fire Calls
0
Handler Calls
0
Total Items
4. Throttled vs Unthrottled Comparison
See the difference between throttled and unthrottled events