- Steve Souders
var p = document.createElement("p");
document.body.appendChild(p);
<script>document.write("right before bla");
</script>
<div id=bla>...
<script>
var width =
document.getElementById("thing").width();
</script>
document.getElementByTagName("base").href=
"http://DontDoThat.com"
<script>document.write("<!--");</script>
<img src>...
var f = new FontFace("newfont",
"url(newfont.woff)", {});
f.load().then(function (fontFact) {
// Do something once font is loaded.
});
<link rel="preload" href="/assets/font.woff"
as="font">
<link rel="preconnect"
href="http://thirdparty.com">
@yoavweiss on Twitter & GitHub