I have a few doubts which i am already sure of it but still want to be very precise about it.
If this is a duplicate question then please give me links so that i will delete this question and will refer the provided links
I need to preload few images. I dont want to preload if they already exists in the browser cache.
if we are preloading then we use the javascript code to preload which sends a request. also we have an img src for the same image in the html document. will the browser request for an image two times. one while preloading and other when it sees the img tag?
I hope both the preloading and img src processes are asynchronous. i hope that the resource and request taken when linking an image like obj.src = path and will be the same.
i hope preloading will not work like synchronous Ajax. that is by giving priority
is it possible to know whether an image is in cache so that we dont have to preload it.
am i missing few more questions? if so then please provide those answers so that the stack overflow users could update.
Just yes or no would be nice. if possible i would like to have some links to external reference or suggestions or an answser.
Thank You.