Using image sprite for gallery

Slow loading time due to too many images and too large images (file size). I already started converting PNG to JPG and was considering changing the view of the current slider / gallery (series of 6 JPG images) to one sprite. I am not sure if this is possible or worth all the effort.

I know that background images are a problem, and I'm already working on replacing them with JPG and reducing the size of their files. The link is below, if any experienced html / css / js / jquery user could advise, can he 1) use image sprite for gallery / slider and 2) is it worth it? Will it be loading time?

http://tinyurl.com/7ywoqpf

+4
source share
1 answer

I do not suggest using image sprite for the gallery. If you ever want to change something, you need to change the sprite. Now make, say, five changes on your site and 5 modifications of the sprite. To do this, it is better to use properly optimized, independent images. Thus, you simply change the order of appearance with ease, and also change the images to the case in each case.

Go to this URL if you need heavy lossless compression:

http://kraken.io/

I use it mainly for any heavy project I'm working on.

Hope this helps G

+3
source

Source: https://habr.com/ru/post/1410872/


All Articles