Evertjan. wrote:
yk wrote on 12 sep 2006 in comp.lang.javascript:
>Is it a technique available in html/javascript in order
to display same image many many times on a same page?
Because of a
large page loading I am looking for a way not to have
same image many times in a page load, but rather once.
In most browsers, perhaps in all, an image loads only
once when displayed multiple times on the same page.
Wouldn't that depend a great deal on the HTTP headers sent with the
image? If the headers suggested that the image expired immediately (or
in the past), or should not be cached, then it may be re-fetched from
the server for each request. (Browser cache configuration would also be
a factor in conjunction with headers).
But even in a best case of the image being cached on the client hard
disk the actual image data is going to have to be transferred to display
memory multiple times, but that cannot be avoided if the user is to see
the image in multiple places at once.
No need for scripting.
None.
Richard.