say i have a function toDo();
i want to call the function whenever i scrolled the window.
and i want to begin the execution effect after a sudden period of time using setTimeout() what could be the correct code.
i think
is it the correct form ,or there are other cleaner and safer way to do so???