jadove said
Thanks for your responds,
But what is the best way to make a imagesprite,
Like #prev{background:url(‘img_navsprites.gif’) -47px 0;}, but to me this seems like 1 http request per object,
or create a div for every category and use the background position tag?
You can have dozens of elements with the same background url (the sprite you created), and just change the background position on each one. The browser will only make an http request for the first one. After that, it will realize that it already has the image, and use the one it already has. This is much better than connecting and downloading 2 images at a time, and then connecting again and downloading 2 more, and so on.
If possible, you should serve your sprite from a different hostname (e.g. images.domain.com), or domain (www.mydomainimages.com) and do not serve cookies from this domain (the browser will foolishly download all of the cookies everytime it grabs an image.
If you are really a pro, map this hostname or domain to a CDN provider like Amazon Cloudfront so that users connect to an edge server near them, instead of the same server that serves the rest of your site. This also reduces the load on your server and helps you with traffic spikes.