Skip to content

Commit

Permalink
rename t_prerender to t_postrender since it measures the time after r…
Browse files Browse the repository at this point in the history
…ender but before onload
  • Loading branch information
bluesmoon committed Jun 15, 2011
1 parent 39630b8 commit 75855b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boomerang.js
Expand Up @@ -560,7 +560,7 @@ BOOMR.plugins.RT = {
// http://code.google.com/chrome/whitepapers/prerender.html

this.endTimer("t_load"); // this will measure actual onload time for a prerendered page
this.startTimer("t_prerender"); // time from prerender to visible
this.startTimer("t_postrender"); // time from prerender to visible or hidden

BOOMR.subscribe("visibility_changed", this.done, null, this);

Expand All @@ -577,8 +577,8 @@ BOOMR.plugins.RT = {
}

// If a prerender timer was started, we can end it now as well
if(impl.timers.hasOwnProperty('t_prerender')) {
this.endTimer("t_prerender");
if(impl.timers.hasOwnProperty('t_postrender')) {
this.endTimer("t_postrender");
}

// A beacon may be fired automatically on page load or if the page dev fires
Expand Down

0 comments on commit 75855b1

Please sign in to comment.