I have to count image loading time. onLoadHandler is responsible for it.
<img onError="onErrorHandler(this);" onLoad="onLoadHandler(this);" alt="" border='0' width='1' height='1' src='http://exmaple.com/02.jpg'/>
It is works fine if image is normal file with 200 server response.
But partners provide chain of 302 redirects, and onError fires on first redirect. So i never get real loading image time.
Is there some workaround?
Thanks
Is the size of the image that you're redirected to the same size as the image you requested? If not, you can use this to detect an error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With