Skip to content

Instantly share code, notes, and snippets.

@gimenete
Created April 29, 2013 13:52
Show Gist options
  • Save gimenete/5481689 to your computer and use it in GitHub Desktop.
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.
<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