I am using jQuery 1.7.1.
After an image loads in the browser window, I want to retrieve its total byte size. Is there an object name / value for that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there is no way you can get the image size using jQuery or pure JavaScript. The only way is to get it from server side using ajax.
You can get the image url send it to a service or server side page and have the page or service return the image size.