Update index.html

change onkeypress to "setTimeout(resize(),3000)"