Google News using "data:" protocol for images

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

So I opened an image in a new tab from Google News today and to my surprise my address bar was filled with "data:image/jpeg...". I thought maybe Opera was doing something funny since Opera 10 was just recently released, so I looked at the source of the page to make sure and found a bunch of these.

HTML Code: [ Select ]
<img src="data:image/jpeg;base64,/9j/4AAQSkZ...


How long as Google been using the data protocol for images in Google News ?
How are they determining whether to use it or not from browser-to-browser ?
Does this mean there's enough support for the data: protocol around now for everyone to use it ?
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

Although it's not the greatest, IE8 supports data URI's. However, it's the first version of IE to do this, so there's still a sizable portion out there who won't be able to take advantage of them. IE8 also limits the size to 32KB. My guess is that Google sees it as an opportunity to offer (those of us who can utilize them) an advantageous protocol. It would also allow them to perfect usage as the number of IE8 users ramp up.

For anyone who cares to read up a bit more on data URI's, there's a good primer here.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Joebert once did an interesting experiment using Opera, data URI's, and ozzu here:

general-discussion/join-light-theme-come-over-the-dark-side-t76932.html
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

I just had a quick look at my Google News index page and counted 40+ ~2KB images.

One of the images when saved to disk is 2,130 bytes, but when found in the source of the page is 2,864 bytes. An increase of roughly 25% in filesize.

Google has however, saved 40+ requests to a server to get those images, a nice reduction in the number of HTTP requests.

I'm starting to wonder how each browser handles caches when it comes to data: now. I'm guessing in a once-off page it's moot, but still something to wonder about. :scratchhead:

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: viewplus and 25 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.