One javascript file that my webpage loads has this call
window.setTimeout(function() {
self.MakeWaterFall(self)
}, 500);
That .js file is hosted on other server and is loaded on webpage similar like many js libs from CDNs are loaded,, and that file has 'hardcoded' setTimeout call after 500ms
Now, I'd like that 'MakeWaterFall'
function to run little later on a page
I'd like it to run after custom trigger fires, after ajax data comes down the wire and renders posts on a page.
This is that binded trigger that I need to 'move' MakeWaterFall fn to..
$(window).bind( 'grid:items:added' , function(){
// .. some custom events on elements +
MakeWaterFall(window);
} ) ;
this question in essence is like 'can I hook up before window.setTimeout runs and block one spec call and move it somewhere else, latter in the code' ?
also not that I have other bunch of code that runs in other places in code via window.setTimeout code,, I know that sucks :(
thanks