fg-loadcss
Version:
A function for loading CSS asynchronously
21 lines (19 loc) • 584 B
HTML
<html>
<head>
<title>Blocking Test</title>
<meta charset="utf-8">
<style>
body {
background: #ccc;
}
</style>
<script>
<!--#include virtual="../src/loadCSS.js" -->
loadCSS( "slow.css" );
</script>
</head>
<body>
<p>This is a test to see whether or not a loadCSS call will block render. This page uses loadCss to load a CSS file that has a 5 second delay built into its server response time. If loadCSS works properly, you should be able to read this text before the page is styled as white text on green background.</p>
</body>
</html>