PracticeJavaScript / practicejavascript.com

Practice JavaScript with this fun game
https://practicejavascript.com/
MIT License
0 stars 0 forks source link

Perf - add debounce to keybinding for validation #8

Closed spacerockzero closed 7 years ago

spacerockzero commented 7 years ago

it tests a bit more often than it needs to. let's debounce the keybinding to make it a bit more efficient.

spacerockzero commented 7 years ago

debounced to 250ms between the keyup and function call binding now. works pretty well for the desired effect without seeming like a UI perf delay.