Don’t use document.write in scripts loaded via Script DOM technique
I was working with a script that I was loading using the Script DOM technique talked about by Steve Souders, which looks like this:
<script type="text/javascript>
var s = document.createElement("script");
s.src = "/path/to/script.js";
document.getElementsByTagName("head")[0].appendChild(s);
</script>
Unfortunately, this was an older script and was using a document.write to put a <style> tag into the page when the script was loaded. Very bad results in Firefox with this. Had to rewrite the document.write to inject a <style> tag into the DOM like I did with the script tag. Killed two birds with one stone.

