-
-
Save joeblynch/01dacf7ff6901c32e7d7 to your computer and use it in GitHub Desktop.
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
//Copy to URL bar: | |
javascript:var s=document.createElement("script");s.src="https://github.com/mrdoob/stats.js/raw/master/build/Stats.js",document.body.appendChild(s),s.onload=function(){var a=new Stats,b=a.domElement.style;b.position="fixed",b.left="0px",b.top="0px",document.body.appendChild(a.domElement),setInterval(a.update,1e3/60)} | |
//Source | |
var s = document.createElement('script'); | |
s.src = 'https://github.com/mrdoob/stats.js/raw/master/build/Stats.js'; | |
document.body.appendChild(s); | |
s.onload = function() { | |
var stats = new Stats(), | |
ss = stats.domElement.style; | |
ss.position = 'fixed'; | |
ss.left = '0px'; | |
ss.top = '0px'; | |
document.body.appendChild(stats.domElement); | |
setInterval(stats.update, 1000 / 60); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment