D
duane.barlow
I'm trying to determine the amount of time that elapses between when
the page starts loading and after all of the javascript is done
running. Right now I have in the header something like:
var start = new Date();
and then after the last javascript call I have:
var end = new Date();
var elapsedTimeInMilliseconds = end - start;
report(elapsedTimeInMilliseconds);
the report function sends the value back to the server.
This is working fine for me, but the report that is coming back from
the back-end containing all 500,000 or so hits to the page contains
some preposterously high numbers and also even some negative numbers.
Am I doing something wrong here? Can anyone think of a reason this
wouldn't be working, or how I could possibly get a negative value?
Thanks so much in advance!
-Duane
the page starts loading and after all of the javascript is done
running. Right now I have in the header something like:
var start = new Date();
and then after the last javascript call I have:
var end = new Date();
var elapsedTimeInMilliseconds = end - start;
report(elapsedTimeInMilliseconds);
the report function sends the value back to the server.
This is working fine for me, but the report that is coming back from
the back-end containing all 500,000 or so hits to the page contains
some preposterously high numbers and also even some negative numbers.
Am I doing something wrong here? Can anyone think of a reason this
wouldn't be working, or how I could possibly get a negative value?
Thanks so much in advance!
-Duane