I would like to know if it is possible that a local web page is loaded without images but having a box for each image that is of the same dimensions width/height? Also with Javascript or other techniques.
Share
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.
You need to know the image’s dimensions beforehand somehow.
Without loading the image into the browser, that is possible only using server side scripting to fetch the image, get its dimensions, and write the numbers into the markup.
Depending on your use case, you could also load the images using JavaScript, without displaying them, get their dimensions, and update the
<img>elements accordingly. But to do that, the images have to be loaded from the server, and it sounds like that is not what you want.