Could I use a JavaScript Image object? If so, can someone give me an example? And could it be done with jQuery?
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.
A javascript image object will not save you anything in this case. The browser will cache the image the first time it is loaded and then retrieve it from the cache any time it is referenced on the page. Javascript will not help your page load speed for this issue.
Fewer images or smaller images will help. If you have lots of different images, they can sometimes be combined into a single sprite and then load faster.