I read an interesting article …

I read an interesting article on How to detect long page loading times with Javascript at Web Kreator but it didn’t include any code. I tried various methods, including using document.write to create an image at the end of my document but that didn’t work with cvsbook.html (a 600K+ or so html document).
So I decided to open a small window and close it quickly. Look through your log files for “icon.gif?time=”, and replace that with a script that records this info to a database or somewhere.

It works on a LAN, but I suspect on an Internet site you’d want to have the window.close() call in the new window, and not the opening window.


<body bgcolor="#FFFFFF" fgcolor="#000000" onload="javascript:endTime()">

<script language="javascript">
<!--
var now = new Date();
var start = now.getTime();

function endTime()
{
    var now = new Date();
    var end = now.getTime();
    timeToComplete = ( end - start ) / 1000;
    alert( "this page took "+timeToComplete+" seconds to load!" );
    wn=window.open("/icons/text.gif?time="+timeToComplete,'_blank',
    'width=1,height=1,toolbar=no,location=no,directories=no,'+
    'status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0,screenX=0,screenY=0'
    wn.close();
}
// -->
</script>

Redmond, Wash. – In a surprise …

Redmond, Wash. – In a surprise settlement today with nine U.S. states, Microsoft agreed to be split into two independent companies – one that will continue to make Microsoft operating systems, browsers, and server software, and another, potentially larger company that will make patches for Microsoft operating systems, browsers, and server software.

My killer-app tivo/tivoweb/pal …

My killer-app tivo/tivoweb/palmpilot story – guy telnets/sshs to his Tivo. thanks Mark for the link!

I want to update this weblog from my Palm Pilot.. anyone have ideas.. I’ll go a-googling later on.

Lawyers driving up insurance premiums – Thanks James. Lawyers fees account for up to 42% of payouts on insurnace claims. *grrr* The Irish motorist pays for it.