This is a migrated thread and some comments may be shown as answers.

[Solved] Grid with Images & Multiple HTTP Requests

1 Answer 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Itay
Top achievements
Rank 1
Itay asked on 21 May 2009, 01:30 PM
Hi,

I have a RadGrid which in most of the cases display the same image per row.

When i use HTTP Analyzer, i see that the image is being loaded multiple times, meaning that if I have 100 rows that should display it, it will be loaded (or searched in cache) for 100 times.

What's the best way to optimize it and get rid of those unnecessary requests?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 May 2009, 09:21 AM
Hi Itay,

I would suggest you to use Sprite images in the Grid instead. CSS sprites reduces the number of HTTP requests for images.
Telerik is also using sprite image for designing Grid. Check out the following telerik help article on using CSS sprites.
CSS sprites



Shinu
Tags
Grid
Asked by
Itay
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or