Skip to content

Instantly share code, notes, and snippets.

View Christoph142's full-sized avatar

Christoph Christoph142

View GitHub Profile
@da2x
da2x / scrollperformance.js
Created September 20, 2012 10:54
Bookmarklet for measuring scrolling performance
javascript:q=Date.now();w=0;a=3;s=10;e=setInterval("w+=s;if(w<document.body.scrollHeight&&w>=0)window.scrollTo(0,w);else if(--a){s=-s}else{clearInterval(e);alert(Date.now()-q);}",0);void 0;