Permalink
Browse files

Add number of images and script nodes

It's good to test if there's a correlation between the number of script
nodes/images and page load or render time.  It's obviously more complex
than this, but this is a start.
  • Loading branch information...
bluesmoon committed Oct 6, 2012
1 parent 76172ce commit 711679ff235edee42a505670eb8526ada4466c3c
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugins/memory.js
View
@@ -38,7 +38,9 @@ var impl = {
BOOMR.addVar({
'dom.ln': f.call(d, '*').length,
- 'dom.sz': f.call(d, 'html')[0].innerHTML.length
+ 'dom.sz': f.call(d, 'html')[0].innerHTML.length,
+ 'dom.img': f.call(d, 'img').length,
+ 'dom.script': f.call(d, 'script').length
});
if(w.chrome && w.chrome.loadTimes() && w.chrome.loadTimes().wasFetchedViaSpdy) {

0 comments on commit 711679f

Please sign in to comment.