Why the setTimeout(,0) in append-child's loadButton.onclick?
Closed this issue · 2 comments
domenic commented
It isn't needed in the streaming-element demos. A comment at least would be a good idea.
ricea commented
Creating the invisible iframe is slow for reasons I have not adequately nailed down, but which appear to be related to extensions. This results in a message being printed to console about the onclick handler being slow. The setTimeout() is a hack to stop that message by forcing the iframe creation to happen asynchronously.