Monday, November 30th, 2009
>Stoyan Stefanov is all about the performance of web products. One small tool that gives you a bit of insight as to where you can optimize is a new bookmarklet he released today called statsy.
If you run statsy on a web site you get the following insights:
JS attributes (e.g. onclick)– this is the sum of all
onmouseoverand so on including the attribute names. So for example
CSS style attributes– the sum of all
Inline JS– the sum of all the contents of all script tags (excluding the tag itself)
Inline CSS– sum of all
All innerHTML– this is
document.documentElement.innerHTML.length, it should be close to the ungzipped size of a page, provided the page is not doing a lot of DOM manipulation
# DOM elements– the total number of elements on the page is counted simply using
On Ajaxian, this is the result:
Nothing earth-shattering but a good tool to use together with YSLow or PageSpeed.