- Steve Souders
var p = document.createElement("p");
document.body.appendChild(p);
<script>document.write("<!--");</script>
<div>...
<script>
var width =
document.getElementById("thing").width();
</script>
document.getElementByTagName("base").href=
"http://DontDoThat.com"
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