Experimenting with custom implementation of document.write.
Just add a <script src="dw.js"></script> to your code and hope for the best.
Also, keep your fingers crossed; document.write is a very dark magic and
stuff can go always wrong without warning.
If you have a HTML string with a potentially problematic code inside (script nodes which might contain document.write), insert it into a parent node via
document.writeTo(parent, htmlCode);- external scripts written using
document.writeare async, not immediately available - code written using
document.writeis buffered in a highly speculative way - thou shalt not call
document.writewhile there is an external script load pending