Presumably you do not have an id="list"
element in your DOM. This would mean that your initial waitForBody
call ends here:
window.setTimeout(waitForBody(contentPc), 100);
and this will call waitForBody(contentPc)
when building the argument list for setTimeout
. And then you return to the setTimeout
call again, but one more level level. I think you want to say this:
window.setTimeout(function() { waitForBody(contentPc) }, 100);
so the next call to waitForBody
little delayed.
source share