Shape 5

General Category => General Talk/Questions/Comments => : pici65 October 08, 2017, 11:18:16 AM



: CSS sprites for few images
: pici65 October 08, 2017, 11:18:16 AM
Hello
in different templates, in test gtmetrix or other
I receive the same message:
CSS sprites for few images
for example
.../templates/business_pro/images/s5_menu_arrow.png
.../templates/business_pro/images/s5_menu_line.png
.../templates/business_pro/images/s5_row_bottom_shadow.png
.../templates/business_pro/images/s5_row_top_shadow.png
.../templates/business_pro/images/s5_scroll_arrow.png
.../templates/business_pro/images/vertex/responsive/arrow_light.png
.../templates/business_pro/images/vertex/responsive/menu_lightx2.png
.../templates/business_pro/images/vertex/responsive/search_light.png
what You suggest?
Do You know some tool?

Thanks


: Re: CSS sprites for few images
: mikek October 09, 2017, 08:04:13 AM
Hello,

There is not much need for a sprite with those images; they are very small images that won't effect page speed. They are meant to be independent images because they change on every design used in the framework. Combining them into a single sprite would require a massive amount of custom css programming, and would not benefit your site.


: Re: CSS sprites for few images
: pici65 October 09, 2017, 09:09:09 AM
First of all thanks for answer
So gtmetrix gives to me a pure no-sense and academic result when indicate = 0
Like a false positive, right?

Thanks


: Re: CSS sprites for few images
: mikek October 10, 2017, 07:33:48 AM
Hello,

It's not non-sense, but it's not necessary to do. Sprites are used when you want fewer http requests, but these images are so small, some less than 1kb, that the http are so fast it won't effect page speed.


: Re: CSS sprites for few images
: pici65 October 11, 2017, 03:28:33 AM
Thanks for answer.
Have a good day.