Author
Message
GegaBit
Posts:3311
Senior member
Member since: 2006-11-30
:: Quote ::
Subject: Google loading all SERPS images in one png file
I suspect this is some java script witchcraft, but does anyone actually know how Google loads all images used in the serps including their own logo as one .png image file google.com/images/nav_logo7.png ??

September 29, 2009 11:35AM
DamonHD
Posts:6158
Moderator
Member since: 2006-11-30
:: Quote ::
Subject: Re: Google loading all SERPS images in one png file
I think it's a pretty standard technique, where you chop out and display the bits you want where you want with CSS, and pay only one HTTP transaction cost to get them all, and get better compression to boot.

Somewhat over my head to actually do it, however...

Rgds

Damon
September 29, 2009 11:50AM
GegaBit
Posts:3311
Senior member
Member since: 2006-11-30
:: Quote ::
Subject: Re: Google loading all SERPS images in one png file
Quote:
chop out and display the bits you want where you want with CSS

And what is doing that called so I can Google it for an explanation in english
I triead searching for
- css chopping .png image
- css grouping .png images
- loading multiple images as one

nothing
September 29, 2009 11:57AM
Joshua
Posts:2831
Administrator
Member since: 2007-03-16
:: Quote ::
Subject: Re: Google loading all SERPS images in one png file
css sprites

[css-tricks.com]
September 29, 2009 12:33PM
GegaBit
Posts:3311
Senior member
Member since: 2006-11-30
:: Quote ::
Subject: Re: Google loading all SERPS images in one png file
Thanks Jo
So it's a sprite not magic JS
I think the main benefit for a busy site like mine would be easing the load on my log file, I had to remove some graphics once and stopped using Google Friend Connect due to overfilling log file and having to archive and rotate logs too many times a month.
September 29, 2009 02:37PM
Joshua
Posts:2831
Administrator
Member since: 2007-03-16
:: Quote ::
Subject: Re: Google loading all SERPS images in one png file
Here's the one they're using on the news pages.



6Kb total! Talking about efficiency.
September 29, 2009 06:09PM

Sorry, you do not have permission to post/reply in this forum.