Every keystroke triggers a re-render with filtered documents
Can cause UI lag for large document lists
Wastes computation on partial search terms
Recommendation
Add debouncing (e.g., 300ms) to the search input handler.
## Description
The search input fires an API call on every keystroke:
```javascript
searchInput.oninput = (e) => {
searchQuery = e.target.value;
render();
};
```
### Impact
- Every keystroke triggers a re-render with filtered documents
- Can cause UI lag for large document lists
- Wastes computation on partial search terms
### Recommendation
Add debouncing (e.g., 300ms) to the search input handler.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Description
The search input fires an API call on every keystroke:
Impact
Recommendation
Add debouncing (e.g., 300ms) to the search input handler.