![]() |
|
|
+ Search |
![]()
|
Aug 29th, 2000 09:05
Martin Honnen, Ignace LE ROUX,
You can roughly measure the time for loading an image in the following
way:
var start, end;
var img = new Image();
img.onload = function (evt) {
end = new Date();
alert(((end.getTime() - start.getTime()) / 1000) + ' seconds.');
};
start = new Date();
img.src = 'whatever.gif';