feat: lazy load search index
This commit is contained in:
parent
ed0caf5727
commit
afd5f125a7
1 changed files with 3 additions and 2 deletions
|
@ -59,12 +59,13 @@
|
|||
resultsElement.innerHTML = html;
|
||||
}
|
||||
|
||||
// Initialize search when the component mounts
|
||||
initializeSearch();
|
||||
|
||||
|
||||
// Add event listener for search input
|
||||
const searchInput = document.getElementById('search-input');
|
||||
searchInput.addEventListener('input', (e) => {
|
||||
// Initialize search
|
||||
initializeSearch();
|
||||
performSearch(e.target.value);
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue