This is an example which settimeout works fine, in fact, it just clear a time before we call it.
and another solution is to do like this:
or ,we can not this more easily:
window.setTimeout('window.parent.generateOutput(true)', 1000); // deprecatedis deprecated. So it explain why it works sometimes for the older version of spoop.
you can see the reference :