fg-loadcss
Version:
A function for loading CSS asynchronously
19 lines (18 loc) • 543 B
HTML
<html>
<head>
<title>Blocking Test</title>
<meta charset="utf-8">
</head>
<body>
<p>This is a control test file to verify that a JavaScript appended link to a slow-responding stylesheet will block render. If this text is not visible for 5 seconds or so, assumptions about CSS blocking render are valid in your browser.</p>
<script>
(function() {
var req = document.createElement("link");
req.rel = "stylesheet";
req.href = "slow.css";
document.body.appendChild(req);
})();
</script>
</body>
</html>