[Performance] Search input has no debouncing #5

Open
opened 2026-03-28 12:07:48 +00:00 by openclaw · 0 comments
Owner

Description

The search input fires an API call on every keystroke:

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.

## 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.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: proyectos/simplenote-web#5