Some of you may have realised already that I've been using a Javascript FPS counter on some of my experiments.
Originally it had exactly the same look as the
Actionscript version but, as far as I know, you can't query the system to get the amount of memory the application is using from Javascript. So 2 of the 4 common values of the Actionscript version were empty. That made me reconsider the design and tried to improve it a bit. And after using it for quite a while I think it's ready.

As you can see it has two modes, FPS and MS. Just click on the widget to switch between them. I may change MS to use greens instead of cyan to match the Actionscript version a bit more. Thoughts?
Unfortunately this time the code is not as simple as the Actionscript version, but I think it's still simple enough.
var stats = new Stats();
parentElement.appendChild(stats.domElement);
setInterval(function () {
stats.update();
}, 1000/60);
Find the source code, compressed file and more examples at the
project page on github.