Created
April 29, 2013 13:52
-
-
Save gimenete/5481689 to your computer and use it in GitHub Desktop.
With the tl;dr extension enabled, follow the steps described in the commented source code.
This file contains 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
<h1>tldr leaks memory?</h1> | |
<!-- Start recording with Chrome Dev Tools using the "Timeline" section. Click 'start' and see the memory usage --> | |
<!-- pushState() does not work with local files, so you can save this file as 'index.html', | |
start a static Python web server with `python -m SimpleHTTPServer` in the same directory and open http://localhost:8000/ --> | |
<button onclick="start()">Start!</button> | |
<script> | |
function start() { | |
for (var i=0; i<80; i++) { | |
window.history.pushState(null, null, '/'+i) | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment