Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 711679ff235edee42a505670eb8526ada4466c3c 1 parent 76172ce
@bluesmoon authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugins/memory.js
View
4 plugins/memory.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.