I enjoyed your explanation of theory at the beginning.
Im curious as to why you didn't include a debounce function on the key events? I always thought it was essential for events that a user can trigger in quick succession.
Yeah you’re right! Very good point! So usually for really heavy duty functions, we don’t want them firing in quick succession since that might slow down the page. Here I didn’t do that because I really wanted to drive home the point that just how optimised these queries actually are. Even after the events firing in quick succession, there’s virtually no performance degradation! :D
1
u/CampbeII Sep 06 '20
I enjoyed your explanation of theory at the beginning.
Im curious as to why you didn't include a debounce function on the key events? I always thought it was essential for events that a user can trigger in quick succession.