jinzhu/vrome — comment on commit f8861440fcb1063fc89703f05be152238732c83e
File: src/frontend/modules/search.js line 139
By YorikSar:

Oh, yes, sorry. Line #77 slipped away somehow.
Ok, logic is solid :)

My point earlier was that even if you call setTImeout(remove, 25), it doesn't mean that browser will call remove 25ms later. It means that it will be called _at least_ 25ms later. Some event can happen in-between, and it can take more than 25 ms to handle it.

You should pass a callback to remove that will be called when the process is finished. That callback should call find.