Click to See Complete Forum and Search --> : Any way to share the same image within a page?


main
May 23rd, 2003, 04:27 AM
see the following code,each row contains a same image, if there're millions of rows in the table, the computer becomes very slowly, is there any way to make it faster? thx...

<table>
<tr>
<td><img src="/image/pic1.gif"></td>
</tr>
<tr>
<td><img src="/image/pic1.gif"></td>
</tr>
.
.
.
.
<tr>
<td><img src="/image/pic1.gif"></td>
</tr>

Satishpp
May 23rd, 2003, 01:20 PM
The code you have posted is doing exactly that -> Sharing/reusing the image.

The download time is only taken the first time, after which the image is used from the browser's cache. This is applicable only of the file name and path match exactly, which it does in yor case.

check this link for more details
http://www.netmechanic.com/news/vol3/loadtime_no6.htm

I think the problem of your machine slowing down is becase of the 'millions of rows in the table'.

Have you tried the same code without the images. Is it fast without the images?

Satish

main
May 23rd, 2003, 07:47 PM
yes, it will be much faster without images.