开发者

How to load image once

开发者_JAVA百科

am rendering around 3000 records ,

So row like Customer Profile edit

Customername , Action

 1  john          editimage  | Delete image
 2  john          editimage  | Delete image
 3  john          editimage  | Delete image
 4  john          editimage  | Delete image
 5  john          editimage  | Delete image
    ...
    ...
3000  john          editimage  | Delete image

So every time edit and delete images loading ,

chk this image

How to load image once


You're getting 304 Not Modified HTTP responses because the server detected that your browser still has the images in the client-side cache, so the server instructed your browser to retrieve those images from that cache. If it were a 200 OK, that means the server sent the images over the network, which is not the case as shown in your Firebug Net tab.


In your code don't do <img src..> but rather use a div with a css class that uses the image as a background image for the div. It would probably help quite a bit.

<style>
.editimage {width:20px; height: 20px; background-image:/path/to/image.gif}
</style>
...
<div class="editimage">&nbsp;</div>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜