I just encounter scrollTimeout
and couldn't figure the usage of it, I can't find any useful result in Google too! isn't there any refernece for all javascript functions ?
setTimeout returns an id, they check to see if it is still active and cancel it.
var onScrollVisitorsBlock = function () {
clearTimeout(scrollTimeout);
scrollTimeout = setTimeout(function () {
....
This way, the function is not continuously executing.