- Code: Select all
function imageLoader(s, fun)
{
genImage = new Image();
genImage.onload=function (){setTimeout(fun, 0)};
genImage.src=s;
}
each time the function is called, a request is sent to the server and when the genImage.onload runs it calls function that shows me the image. How can I get the file size of the image?
I have browsed dozens of sites and googled every byte of the internet


