Faithful clone of the W3Schools tryit editor mechanism: createElement('iframe') → appendChild (frame is momentarily about:blank) → document.write(). Each Run destroys and recreates #iframeResult and rewrites it. Add ?delay=2000 to leave the frame at about:blank before the write, reproducing the slow-render injection race.