Skip to content

Instantly share code, notes, and snippets.

@ornj
Created July 23, 2013 12:26
Show Gist options
  • Save ornj/6061994 to your computer and use it in GitHub Desktop.
Save ornj/6061994 to your computer and use it in GitHub Desktop.
Zen Coding template to generate 10,000 lis formatted with CSS to appear as divs
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Speed Test</title>
<meta charset="UTF-8">
<script type="text/javascript" charset="utf-8">
var start = new Date().getTime() / 1000;
window.onload = function()
{
var end = new Date().getTime() / 1000;
console.log(end - start);
}
</script>
<style type="text/css" media="screen">
li {
display: block;
list-style: none;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<!-- use Zen Coding to generate divs. ⌘E in Textmate, Ctrl+Y+, in Vim -->
ul>li*10000
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment