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() function.so what could be the correct code.
is it the correct form ,or there are other cleaner and safer way to do so???