I would like to time the loading of a window.
The following seems only to indicate the time to launch the new window
not the time to actually download the page for the window. In one case,
326 milliseconds is reported whereas the page in the window requires
1535 milliseconds to complete the download - timed by ethereal.
The purpose of this fuction was meant to be to measure the performance
of the overall system in serving html pages without having to resort to
special software on client computers.
function open_win() {
var start = new Date()
window.open("ht tp://www.xyz.com/pdq.html")
var end = new Date()
document.write( "<br>" + (end - start) + " milliseconds")
self.focus()
}
The following seems only to indicate the time to launch the new window
not the time to actually download the page for the window. In one case,
326 milliseconds is reported whereas the page in the window requires
1535 milliseconds to complete the download - timed by ethereal.
The purpose of this fuction was meant to be to measure the performance
of the overall system in serving html pages without having to resort to
special software on client computers.
function open_win() {
var start = new Date()
window.open("ht tp://www.xyz.com/pdq.html")
var end = new Date()
document.write( "<br>" + (end - start) + " milliseconds")
self.focus()
}
Comment