Created
July 23, 2013 12:24
-
-
Save ornj/6061982 to your computer and use it in GitHub Desktop.
Zen Coding template to generate 10,000 divs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> | |
</head> | |
<body> | |
<!-- use Zen Coding to generate divs. ⌘E in Textmate, Ctrl+Y+, in Vim --> | |
div*10000>div | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment